What is the correct form for the parameter_bridge of the X3 quadcopter model for motor_speed topic?
Hi,
based on the page link text
I have launched after adaptation for the gazebo garden a X3 drone example:
console #1: gz sim quadcopter.sdf
console #2: gz topic -t /X3/gazebo/command/motor_speed --msgtype gz.msgs.Actuators -p 'velocity:[700, 700, 700, 700]'
And it works, I can control the motors independently (what I need). I am now trying to incorporate ROS2 into the task. How to build a bridge for this topic?
The start is probably there, but what next?
ros2 run ros_gz_bridge parameter_bridge /model/X3/????????????
Asked by sendilkelm on 2022-09-27 08:39:46 UTC
Answers
The mapping for that message type is currently not implemented in ROS 2 (https://github.com/gazebosim/ros_gz/tree/galactic/ros_ign_bridge look for Actuators and see TODO). It is implemented for ROS Melodic since the corresponding ROS message mav_msgs/Actuators
is available in Melodic (see https://github.com/gazebosim/ros_gz/tree/melodic/ros_ign_bridge), but not in later versions.
My recommendation would be to use the MulticopterVelocityControl
system as shown in this example.
Asked by azeey on 2022-10-13 21:57:22 UTC
Comments