Difference between revisions of "File system manipulation"

From Lofaro Lab Wiki
Jump to: navigation, search
(Created page with "Let’s start working with file system of the ROS. You need to have a Linux operating system where ROS is installed and workspace has been made. You need 3 important command...")
 
 
(3 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
rospack, roscd, rosls  
 
rospack, roscd, rosls  
  
rospack: it will help finding you your desired package. For example if you look for roscpp pakage your command should be  
+
'''rospack:'''it will help finding you your desired package. For example if you look for roscpp pakage your command should be  
  
$ rospack find roscpp
+
  <nowiki>$ rospack find roscpp</nowiki>
 
   
 
   
 
Which will return the roscpp path in the ros system.  
 
Which will return the roscpp path in the ros system.  
  
roscd: it can be used to know the current ros path also to change ros directory, the command  
+
'''roscd:''' it can be used to know the current ros path also to change ros directory, the command  
  
$ roscd
+
  <nowiki>$ roscd</nowiki>
  
 
will return you the current ros path. If you want to change the directory to roscpp package you should command  
 
will return you the current ros path. If you want to change the directory to roscpp package you should command  
  
$ roscd roscpp
+
  <nowiki>$ roscd roscpp</nowiki>
  
 
Which will give you the path for roscpp.  
 
Which will give you the path for roscpp.  
  
rosls: it is the ros file listing command, you can command this to know the existing file in the specified ros package.   
+
'''rosls:''' it is the ros file listing command, you can command this to know the existing files in the specified ros package.   
  
$ rosls roscpp_tutorials
+
  <nowiki>$ rosls roscpp_tutorials</nowiki>

Latest revision as of 18:58, 19 October 2014

Let’s start working with file system of the ROS. You need to have a Linux operating system where ROS is installed and workspace has been made.

You need 3 important commands to access your package and know what the files are in your ros file system.

rospack, roscd, rosls

rospack:it will help finding you your desired package. For example if you look for roscpp pakage your command should be

  $ rospack find roscpp

Which will return the roscpp path in the ros system.

roscd: it can be used to know the current ros path also to change ros directory, the command

  $ roscd

will return you the current ros path. If you want to change the directory to roscpp package you should command

  $ roscd roscpp

Which will give you the path for roscpp.

rosls: it is the ros file listing command, you can command this to know the existing files in the specified ros package.

 $ rosls roscpp_tutorials