hector_quadrotor not responding to attitude control_mode

asked 2021-08-26 03:38:54 -0500

dcr gravatar image

updated 2021-08-28 09:15:12 -0500

Mike Scheutzow gravatar image

hector_quadrotor not responding to attitude control_mode

Run on ROS Kinetic

The drone responds when I post a message to the /command/pose topic, that is, the drone in gazebo responds when I use the rostopic pub /command/pose command in the terminal

When I use the rostopic pub /command/attitude command in the terminal, the drone in gazebo does not respond

If you can provide some advice, I would be very grateful!

edit retag flag offensive close merge delete

Comments

Can you please! provide as many details as you can?

Ranjit Kathiriya gravatar image Ranjit Kathiriya  ( 2021-08-26 05:41:02 -0500 )edit
  1. Run on ROS Kinetic

  2. The drone responds when I post a message to the /command/pose topic, that is, the drone in gazebo responds when I use the rostopic pub /command/pose command in the terminal

  3. When I use the rostopic pub /command/attitude command in the terminal, the drone in gazebo does not respond

If you can provide some advice, I would be very grateful!

dcr gravatar image dcr  ( 2021-08-26 20:46:04 -0500 )edit

the drone in gazebo does not respond.

Can you please! describe errors or issues? If you think try to share code. Based on your statement I cannot tell you the answer. I do not have a clear picture of what your issue is.

Ranjit Kathiriya gravatar image Ranjit Kathiriya  ( 2021-08-27 05:53:35 -0500 )edit

I issued the following command in the terminal, but the drone in gazebo did not respond: rostopic pub -r 10 /command/attitude hector_uav_msgs/AttitudeCommand "header: seq: 0 stamp: secs: 0 nsecs: 0 frame_id: 'world' roll: 0.0 pitch: 30.0"

dcr gravatar image dcr  ( 2021-08-30 02:13:52 -0500 )edit

rostopic pub -r 10 /command/attitude hector_uav_msgs/AttitudeCommand "header: seq: 0 stamp: {secs: 0, nsecs: 0} frame_id: 'world' roll: 0.0 pitch: 30.0"

Can you try this? and please! also what error you are getting?

Ranjit Kathiriya gravatar image Ranjit Kathiriya  ( 2021-09-07 05:15:13 -0500 )edit

An error occurred when I used this command:

rostopic: error: Argument error: mapping values are not allowed here
  in "<string>", line 1, column 12:
    header: seq: 0 stamp: {secs: 0, nsecs: 0} f ...
dcr gravatar image dcr  ( 2021-09-07 20:30:25 -0500 )edit