hector_quadrotor icon indicating copy to clipboard operation
hector_quadrotor copied to clipboard

ROS Hector Quadrotor cmd_vel problem - Quadrotor not responding

Open sakpancar opened this issue 7 years ago • 5 comments

packetlist

I have installed the packages src folder in the image above. And I compiled packages with "freem100@m100:~/seyit_ws$ catkin_make" freem100@m100:~/seyit_ws$ source devel/setup.bash

I am launching gazebo with "freem100@m100:~/seyit_ws$ roslaunch hector_quadrotor_demo indoor_slam_gazebo.launch"
ekran goruntusu - 2018-02-20 23-03-29

freem100@m100:~/seyit_ws$ rostopic pub /cmd_vel geometry_msgs/Twist "linear: x: 0.0 y: 0.0 z: 0.5 angular: x: 0.0 y: 0.0 z: 0.0"

I publish it with a cmd_vel above in a different terminal. But the quadrotor gives no response. Please, what can I do. Please help me...

sakpancar avatar Feb 20 '18 20:02 sakpancar

I think you will need to enable the drone first by calling the service /enable_motors

ppianpak avatar Mar 10 '18 01:03 ppianpak

When I use rosservice list I don't get this service listed. Do I need to do something different?

rohit-s-murthy avatar Mar 12 '18 19:03 rohit-s-murthy

@rohit-s-murthy That's weird. I don't need to do anything. Have you spawned a drone into your world? Maybe there is a difference in version? I'm using Kinetic by the way.

ppianpak avatar Mar 12 '18 19:03 ppianpak

@ppianpak Thanks for the reply. Ya I'm using Indigo so maybe that's why it isn't showing. Going through some of the other issues, I guess this service is only in Kinetic.

rohit-s-murthy avatar Mar 12 '18 19:03 rohit-s-murthy

Did you do the "source devel/setup.bash" on your new terminal?

RyanDirgantara avatar May 15 '18 14:05 RyanDirgantara