Hello everyone,
I'm running Ubuntu 20.04 with ROS Noetic installed on a VMWare 16.
I'm trying to join the firmware folder of PX4-Autopilot using this command:
roscd px4
following the instructions in the Unit 8 of the book "Mastering ROS for robotics programming - Third edition".(L.Joshep, J.Cacace)
but it's throwing the next error:
roscd: No such package/stack 'px4'.
The book says:
"This folder contains all the files necessary to modify and upload the firmware on the embedded controller (the autopilot) and to simulate source code on different simulators. To link all the necessary elements, the firmware directory is recognized as a ROS package, even though it is not compiled as such. In addition, the name of this package is px4. Note that the name of the directory doesn't necessarily represent the name of the ROS package."
STEPS I HAVE DONE
- Donwload de code in my ros workspace:
git clone https://github.com/PX4/PX4-Autopilot.git --recursive
A new directory called "PX4-Autopilot" has been created.
Try to join the firmware folder with the following command:
roscd px4
Originally posted by SPoVi on ROS Answers with karma: 3 on 2022-02-26
Post score: 0
Original comments
Comment by gvdhoorn on 2022-03-01:
Have you seen #q348818? That seems to be a duplicate of your question.
Comment by SPoVi on 2022-03-01:
Yes, I did it before posting, thankyou.
My question was more related about why the folder can be called "PX4-Autopilot" and y should be able to call the directory with "roscd px4". As the book says "the name of the directory doesn't necessarily represent the name of the ROS package".
By the way, I found why I could not call it, I understood that when I should install de PX4-Autopilot in my workspace i had to doit in the level ~/catkin_ws. Once I did it inside ~/catkin_ws/src, I could use "roscs px4" to change directory to the "PX4-Autopilot" folder". ~/catkin_ws/src/PX4-Autopilot.