Main reference is ROS 2.
https://ardupilot.org/dev/docs/ros2.html
ros2 run mavros mavros_node --ros-args --param fcu_url:=udp://127.0.0.1:14551@14555
docker source rockstarartist/mavros2
- get ardupilot in simulation
sim_vehicle.py -v ArduCopter --console
- we can use mavros like
roslaunch mavros apm.launch fcu_url:=udp://127.0.0.1:14551@14555
- use mavros2 in docker A docker image of mavros2 is created here rockstarartist/mavros2.
- build the container from that image
docker pull rockstarartist/mavros2
- run mavros2
docker run -v /dev/shm:/dev/shm --net=host rockstarartist/mavros2:humble-x86 ros2 run mavros mavros_node --ros-args -p fcu_url:=udp://:14561@localhost:5901 -p tgt_system:=1
Executing commands on Pixhawk with ArduPilot via MAVROS2
How to install mavros inside the container with ros2 humble preinstalled
MAVROS2: RC-Override in ROS2 Foxy - Equivalent of rosrun mavros mavparam set SYSID_MYGCS 1
read those
user docker mavlink/mavros#1864
https://hub.docker.com/r/rockstarartist/mavros2
MAvlink https://zhuanlan.zhihu.com/p/415266156
Main reference is ROS 2 User Guide.
make px4_sitl gz_x500
MicroXRCEAgent udp4 -p 8888
# use ament_garge for ros2 pkgs
ament_target_dependencies(frame_transforms geometry_msgs sensor_msgs)
# use targe_link for pkg Eigen3
target_link_libraries(frame_transforms Eigen3::Eigen)