ROS package to demonstrate primitive functionality of ros services with an autopilot using mavros.
DON'T RUN ON ACTIVE VEHICLE (I use dummy data)
Open a terminal and run roscore
Open a second terminal and run roslaunch mavros px4.launch
(or your preferred autopilot stack) to start mavros. You may need to change the .launch
file to find the pixhawk depending on your connection. Connected via usb I needed to switch the directory to find our pixhawk device to /dev/ttyUSB0:(some port number ex.57600)
Open a third terminal run our rosnode via mavros_primitive mavros_primitive_node
If this command fails to find our node you can navigate to the directorycatkin_ws/devel/lib/mavros_primitive
and run the node manually by ./mavros_primitive_node
The mavros_primitive_node
should now be running.
Press w
to send takeoff request.
Press s
to send land request.