The velocity of crazyflie
-
- Beginner
- Posts: 10
- Joined: Tue Jan 12, 2021 11:00 am
The velocity of crazyflie
Hello everyone!When I use the crazyflie_ros file ,I want to use the controller algorithm of myself instead of the PID algorithm,but I don't know how to get the present velocity of the crazyflie,could anyone help me.I would be really appreciate your help
Re: The velocity of crazyflie
The velocity is available as log variable in the variables "stateEstimate.vx", "stateEstimate.vy" and "stateEstimate.vz". crazyflie_ros allows to setup logblocks to log variables at regular interval and make them available as a topic.
As an extra note: a lot of information are available as log. Currently the best way to see what is available is connect the Crazylfie with the Crazyflie client and look in the "Log TOC" tab.
As an extra note: a lot of information are available as log. Currently the best way to see what is available is connect the Crazylfie with the Crazyflie client and look in the "Log TOC" tab.
-
- Beginner
- Posts: 10
- Joined: Tue Jan 12, 2021 11:00 am
Re: The velocity of crazyflie
Thanks for replying! By the way,I want to know if I use the crazyflie_ros and I want to get the velocity of the crazyflie and use them at the same time ,should I write an node to realize it?I am a rookie to ROS,maybe ask a very basic question.I tried use cf client before,but when I want to link the crazyflie use the cf client and the ROS,it could lose connection with one of the two ways.
Re: The velocity of crazyflie
It might be best to ask the question directly on the [issue list of the github repo of crazyflie_ros. I also notified the person that is responsible for this repository to help you out.
Re: The velocity of crazyflie
There is no need to write a custom node. All you need to do is to enable pose logging or to set up a custom log configuration.
-
- Beginner
- Posts: 10
- Joined: Tue Jan 12, 2021 11:00 am
Re: The velocity of crazyflie
Thank you for your replying!Is the enable pose logging
Code: Select all
<group ns="crazyflie">
<include file="$(find crazyflie_driver)/launch/crazyflie_add.launch">
<arg name="uri" value="$(arg uri)" />
<arg name="tf_prefix" value="crazyflie" />
<arg name="enable_logging" value="True" />
-
- Beginner
- Posts: 10
- Joined: Tue Jan 12, 2021 11:00 am
Re: The velocity of crazyflie
I really appreciate your help!I would try again.kimberly wrote: ↑Mon Jun 07, 2021 11:14 am It might be best to ask the question directly on the [issue list of the github repo of crazyflie_ros. I also notified the person that is responsible for this repository to help you out.