ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Where to put files for ros

asked 2013-02-12 18:44:01 -0500

BCT gravatar image

updated 2013-02-12 18:51:59 -0500

I'm new to ROS(an not too confident in my skills with the file system in linux) and am trying to make a basic robot to simulate on Gazebo. I understand that one of the things I need to do is create the robot chassis from a urdf file, along with the nodes to control it etc... But I'm not entirely sure where to to put these files. Not just files I would make but packages I would have downloaded where would I extract them to. Would they go in the workspace directory that tutorials had me make in my home directory? Or would they have to go in the gazebo directory which is in the ROS directory which is in the opt directory? Or does it even matter?

Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-02-12 21:54:47 -0500

davinci gravatar image

I put source packages in my ROS workspace. Development of new packages I do in the sandbox. Let the install system manage the files in /opt/ros. So that nothing breaks at an update or gets lost.

edit flag offensive delete link more

Comments

Don't forget to set ROS_WORKSPACE and ROS_PACKAGE_PATH environnement variable ('export' command) to ensure your packages can be used with ros commands.

Erwan R. gravatar image Erwan R.  ( 2013-02-13 00:36:05 -0500 )edit

Thanks for the responses. Can you elaborate on what you mean by setting ROS environment variables. As in what are these variables, their function and how I would go about doing this(maybe an example)?

BCT gravatar image BCT  ( 2013-02-13 02:16:24 -0500 )edit
1

Please work through some of the basic ROS tutorials first, then ask additional questions here, if needed. http://www.ros.org/wiki/Tutorials

joq gravatar image joq  ( 2013-02-13 04:12:43 -0500 )edit

Environment variables are a Unix feature. You can find information about that on any internet Linux-related website. Follow Joq's advice, it will probably give you the information you need.

Erwan R. gravatar image Erwan R.  ( 2013-02-14 22:42:34 -0500 )edit

Question Tools

Stats

Asked: 2013-02-12 18:44:01 -0500

Seen: 203 times

Last updated: Feb 12 '13