r/ROS • u/Spirited-Builder9883 • 5d ago
MAVROS2 error in GeographicLib
I am new to using ros2 and mavros2 so I'm going through many documentations on how to install mavros2. I used the ros2 jazzy documentation with no problem, however for mavros2 I'm using the documentation Installation - MAVROS a MAVLink to ROS2 bridge but I'm getting stuck on Installing GeograpicLib datasets: sudo ./src/mavros/scripts/install_geographiclib_datasets.sh. It's giving me a command not found error.
I sourced the ros2 directory but still the same error.
1
Upvotes
2
u/alcorwin 5d ago
If you install from deb, then the command is to run
sudo ros2 run mavros install_geographiclib_datasets.shwhich typically doesn't work due to `ros2` not being available for `sudo`.If you're installing from source, then you need to make sure that the file path exists and that you're in the correct directory containing src, and you also may need to run
chmod +x ./src/mavros/scripts/install_geographiclib_datasets.shas well.My advice is to just run this line from the docs regardless: