Below is the Result of using ros2 node to move the drone
p.s. below code line is example of how to build specific package instead of the whole workspace (takes for ever…if you have a lot of stuff in your works stace RIP)
cd ~/ros2_ws
colcon build --packages-select my_package
refer to the below page, download all the stuff mentioned and do the homework (commander takeoff in px4, and receiving MAVROS position topics)
-Once we are done with the seminar homework we can move on to using ROS python codes to move drones
⚠️p.s. (if you encounter ros2: command not found or something similar, you proabably didn’t source it. Don’t forget that you have to source ros2 and your workspace refer to below page
If you already have ~/ros2_ws/src/mavros_waypoints/
, skip to step 2.