I just finish the python for beginers but I really don´t know what instructions type in the shell to go to diferent folders.
Glad to hear that you just finished the Python course.
To move to different folders in the shell, use the cd
Linux command, and the roscd
ROS shortcut. Here some examples below:
user:~$ pwd # show the current directory (folder)
/home/user
user:~$ ls # list the content of a directory
catkin_ws
user:~$ cd catkin_ws/ # change to the specified subdirectory
user:~/catkin_ws$ ls
build devel src
user:~/catkin_ws$ cd src
user:~/catkin_ws/src$ ls
CMakeLists.txt ardrone_action_client.py services_quiz test.cpp topics_quiz will_this_save_on_timeout
Untitled.txt my_custom_srv_msg_pkg sos_service.py test.py unit2
actions_quiz my_package sos_service_client.py test2.py unit_3_services
user:~/catkin_ws/src$ pwd
/home/user/catkin_ws/src
user:~/catkin_ws/src$ cd .. # move one level up in the directory tree
user:~/catkin_ws$ pwd
/home/user/catkin_ws
user:~/catkin_ws$ roscd topics_quiz # change to the folder of an existing package
user:~/catkin_ws/src/topics_quiz$ pwd
/home/user/catkin_ws/src/topics_quiz
user:~/catkin_ws/src/topics_quiz$ ls
CMakeLists.txt launch package.xml src
You can learn more at http://www.learnshell.org/. Also, we are going to release a FREE Linux basics course soon.
I hope this helps. Keep pushsing your ROS learning!
1 Like