ethz-asl / rotors_simulator

RotorS is a UAV gazebo simulator
1.23k stars 757 forks source link

the topic /pelican/odometry_sensor1/odometry doesnot provide values #467

Open chrismath opened 6 years ago

chrismath commented 6 years ago

I was trying to make a controller which will provide thrust and roll and pitch values to the topic /pelican/command/roll_pitch_yawrate_thrust using python but the quadrotor doesnot fly. When i see the rqt graph the topic /pelican/odometry_sensor1/odometry is not active and it is not echo the values, pls if someone could help me

colineRamee commented 6 years ago

Hi I had a similar issue until I realized I was lacking when calling the controller node in the launch file. <node name="roll_pitch_yawrate_thrust_controller_node" pkg="rotors_control" type="roll_pitch_yawrate_thrust_controller_node" output="screen"> <rosparam command="load" file="$(find rotors_gazebo)/resource/roll_pitch_yawrate_thrust_controller_$(arg mav_name).yaml" /> <rosparam command="load" file="$(find rotors_gazebo)/resource/$(arg mav_name).yaml" /> <remap from="odometry" to="odometry_sensor1/odometry" /> </node>

chrismath commented 6 years ago

thank you