I am referring to http://dev.ardupilot.com/wiki/using-rosgazebo-simulator-with-sitl/
Based on the code, the following is my understanding of what's happening -
- You receive input to ROS (mavros) via UDP socket as motor_speeds. These inputs are received from the SITL and ArduCopter code.
- You publish these motor speeds to the corresponding topic for Gazebo simulation.
- Data from the simulated vehicle is then send back to SITL code, over the UDP socket.
However, I still don't know how I can use Mavros alongside with SITL to be able to send commands to arm, disarm, takeoff, or change the mode over the socket. Any guidance regarding this would be appreciated!
(Please let me know if any clarification is required)
↧