MAVROS¶
SetMode¶
- create a
mavros_msgs.srv.SetModeclient for the/mavros/set_modetopic- Mode options:
MANUAL,GUIDED,HOL
- Mode options:
thrusters¶
- publish a
geometry_msgs.msg.TwistStampedmessage to the/mavros/setpoint_velocity/cmd_velto control speed
TwistStamped messages¶
ie. twist message named 'mymessage':
- Linear velocity can be modified with mymessage.twist.linear.[x(forwards)/y(backwards)]
- measured in m/s
- Angular velocity (rotating the boat) can be modified with mymessage.twist.angular.z
- mesured in rad/s