enable_motor service in hector_quadrotor
hello every body. I'm using hector_quadrotor package to run drone. when I tried to simple example (outdoorflightgazebo.launch ) I need to run /enable_motor service with True arguments using below command :
rosservice call /enable_motors "enable: true"
but when I execute this command I got this error:
"ERROR: Unable to communicate with service [/enable_motors], address [rosrpc://hamed-ThinkPad-T510:51237] "
I see /enable_motors in rosservice list. I tried the solution in below link, but I can not run this service.
http://answers.ros.org/question/48433/unable-to-communicate-to-some-of-ros-services/
can any one help me ?
thank you.
Asked by hamed ghasemi on 2019-06-06 04:37:38 UTC
Comments
Is that the only service you cannot call? How about another one in hector quadrotor, such as /take_off ? Do they also return the same error?
Asked by kosmastsk on 2019-06-06 04:56:09 UTC
thank you for your response.
I do not see /take_off topic but I see takeoff_action/set_logger_level.
when i type "rosservice info /takeoff_action/set_logger_level " I got this message:
Node: /takeoff_action URI: rosrpc://hamed-ThinkPad-T510:46255 Type: roscpp/SetLoggerLevel Args: logger level
and when I type "rosservice info /enable_motors " I got this message: Node: /gazebo URI: rosrpc://hamed-ThinkPad-T510:40355 Type: hector_uav_msgs/EnableMotors ERROR: Unable to load type [hector_uav_msgs/EnableMotors]. Have you typed 'make' in [hector_uav_msgs]?
thank you.
Asked by hamed ghasemi on 2019-06-06 08:41:07 UTC
I notice again and I see I problem with all service in gazebo and I got this error for other service that related to gazebo.
Asked by hamed ghasemi on 2019-06-06 09:11:36 UTC
Did you download and build hector_uav_msgs?
Asked by kosmastsk on 2019-06-06 10:15:31 UTC
yes I install this package.
Asked by hamed ghasemi on 2019-06-06 16:08:40 UTC
Since you built the packages and then sourced the workspace again, and the same error occurs, I cannot find any other reason for not being able to run the service..
Asked by kosmastsk on 2019-06-07 06:14:51 UTC