linux commands to organize directories
cd #move to root(main) directory
cd /dir #move to certain directory
ls #show available files/directories in current directory
cd . #move to previous directory
mkdir my_folder #make directory
nano myfile.txt #make file (nano,vim or any text editor)
sudo apt update
download the latest package lists, good practice to do it before donwloading something (sudo gives admin permission)
colcon build
everytime you make change to packages in your workspace, you have to build it to update the changes (very similar to compiling a code, infact if you have something wrong in the code it build will fail and the terminal will tell there is a problem in a certain file)
ROS commands
ros2 node list
ros2 topic list
ros2 service list
ros2 action list
colcon build
#everytime you make change to packages in your workspace,
#you have to build it to update the changes
#(very similar to compiling a code, infact if you have something wrong
#in the code it build will fail and the terminal
# will tell there is a problem in a certain file)
ros2 run turtlesim turtlesim_node
#ros2 run → run an executable from a package
#turtlesim → the package name
#turtlesim_node → the executable (a C++ program) inside that package