ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

First, the AirSim is not expecting a geometry/twist msg but rather a airsim_ros_pkgs/VelCmd. The message types must match between a publisher and subscriber. So you need to import this message type into your script. Also, it’s not a good idea to define a publisher inside a callback. Either create a Class or define it in your main setup.