Run motors on hector quadrotor demo at thecosntructsim

Hello everyone,

I am using the consctructim with the projects linux namespace as “user” and I have downloaded hector quadrotor demo. I need to enable its motors with running the service

rosservice call /enable_motors “enable: true”

but it gives me the error

ERROR: Service [/[namespace/]enable_motors] is not available

I list the currently available services

rosservice list

/controller_manager/list_controller_types
/controller_manager/list_controllers
/controller_manager/load_controller
/controller_manager/reload_controller_libraries
/controller_manager/switch_controller
/controller_manager/unload_controller
/controller_spawner/get_loggers
/controller_spawner/set_logger_level
/engage
/front_cam/camera/image/compressed/set_parameters
/front_cam/camera/image/compressedDepth/set_parameters
/front_cam/camera/image/theora/set_parameters
/front_cam/set_camera_info
/front_cam/set_parameters
/gazebo/apply_body_wrench
/gazebo/apply_joint_effort
/gazebo/clear_body_wrenches
/gazebo/clear_joint_forces
/gazebo/delete_light
/gazebo/delete_model
/gazebo/get_joint_properties
/gazebo/get_light_properties
/gazebo/get_link_properties
/gazebo/get_link_state
/gazebo/get_loggers
/gazebo/get_model_properties
/gazebo/get_model_state
/gazebo/get_physics_properties
/gazebo/get_world_properties
/gazebo/pause_physics
/gazebo/reset_simulation
/gazebo/reset_world
/gazebo/set_joint_properties
/gazebo/set_light_properties
/gazebo/set_link_properties
/gazebo/set_link_state
/gazebo/set_logger_level
/gazebo/set_model_configuration
/gazebo/set_model_state
/gazebo/set_parameters
/gazebo/set_physics_properties
/gazebo/spawn_sdf_model
/gazebo/spawn_urdf_model
/gazebo/unpause_physics
/ground_truth_to_tf/get_loggers
/ground_truth_to_tf/set_logger_level
/raw_imu/calibrate
/raw_imu/set_accel_bias
/raw_imu/set_rate_bias
/robot_state_publisher/get_loggers
/robot_state_publisher/set_logger_level
/rosout/get_loggers
/rosout/set_logger_level
/shutdown

but there is no service as /enable_motors. I asked the implementers of the hector quadrotor demo and they asked me to check if the service is available in different namespace. Should I change the namespace of linux from “user” to something else or do they mean simply to try one of these active services or they meant some other thing than these two?

Thanks for your answers

Hi,

Normally in drones there is a topic called /take_off, where you just publish and the drone takes off y itself.
** /engage** also looks promissing.