Turning on motors in hector quadrotor demo

asked 2020-04-25 11:21:35 -0500

jean01 gravatar image

hello everyone,

I have run hector quadrotor indoor demo and able to move the robot in all directions. When I look at the motor status, which needs to show voltage and current on the motors, all data is displayed as 0, on and running parameters are set to False.

How can I enable the motors such that they show voltage frequency current values when I type rostopic echo /motor_status ?

I tried to enable the motors with rosservice call /enable_motors "enable: true" written as in tutorial but it gives me the error:

user:~$ rosservice call /enable_motors "enable: true" ERROR: Service [/enable_motors] is not available.

The /motor_status data is as follows:

header: seq: 36144 stamp: secs: 361 nsecs: 450000000 frame_id: '' on: False running: False voltage: [0.0, 0.0, 0.0, 0.0] frequency: [0.0, 0.0, 0.0, 0.0]

current: [0.0, 0.0, 0.0, 0.0]

^Cheader: seq: 36145 stamp: secs: 361 nsecs: 460000000 frame_id: '' on: False running: False voltage: [0.0, 0.0, 0.0, 0.0] frequency: [0.0, 0.0, 0.0, 0.0] current: [0.0, 0.0, 0.0, 0.0]

edit retag flag offensive close merge delete