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

Is $ROS_PACKAGE_PATH after source install okay?

asked 2012-02-05 13:42:22 -0600

StrongEnough gravatar image

updated 2012-02-05 14:07:09 -0600

After I did a source install to /media/apps/ros, as suggested in this question, is my $ROS_PACKAGE_PATH, shown below, okay? lucid@lucid-desktop:~$ echo $ROS_PACKAGE_PATH /media/apps/ros/robot_model_tutorials:/media/apps/ros/visualization_tutorials:/media/apps/ros/geometry_tutorials:/media/apps/ros/common_tutorials:/media/apps/ros/ros_tutorials:/media/apps/ros/documentation:/media/apps/ros/geometry_experimental:/media/apps/ros/robot_model_visualization:/media/apps/ros/geometry_visualization:/media/apps/ros/diagnostics_monitors:/media/apps/ros/executive_smach_visualization:/media/apps/ros/visualization:/media/apps/ros/slam_gmapping:/media/apps/ros/navigation:/media/apps/ros/vision_opencv:/media/apps/ros/laser_pipeline:/media/apps/ros/image_pipeline:/media/apps/ros/image_transport_plugins:/media/apps/ros/perception_pcl:/media/apps/ros/image_common:/media/apps/ros/rx:/media/apps/ros/visualization_common:/media/apps/ros/physics_ode:/media/apps/ros/stage:/media/apps/ros/simulator_gazebo:/media/apps/ros/simulator_stage:/media/apps/ros/xacro:/media/apps/ros/executive_smach:/media/apps/ros/robot_model:/media/apps/ros/assimp:/media/apps/ros/pluginlib:/media/apps/ros/orocos_kinematics_dynamics:/media/apps/ros/nodelet_core:/media/apps/ros/geometry:/media/apps/ros/bullet:/media/apps/ros/filters:/media/apps/ros/eigen:/media/apps/ros/driver_common:/media/apps/ros/diagnostics:/media/apps/ros/common:/media/apps/ros/common_msgs:/media/apps/ros/bond_core:/media/apps/ros/common_rosdeps:/media/apps/ros/ros_comm lucid@lucid-desktop:~$

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-02-05 14:21:21 -0600

updated 2012-02-05 14:36:05 -0600

That is the expected outcome, but you installed in a directory owned by root. I would suggest installing in your user home directory. rosinstall auto generates this based on what it installed. If you are going to build packages yourself, be sure to append to the $ROS_PACKAGE_PATH by following the instructions here

edit flag offensive delete link more


/media is owned by root (just like /opt) but apps is owned by user lucid. My Linux partition didn't allow room for ROS so I installed to a different partition as the installation directions suggested is okay. The "expected outcome" is a bit of a mess, don't you think? Why not a similar directory structure as the binary installation?
StrongEnough gravatar image StrongEnough  ( 2012-02-05 14:56:57 -0600 )edit
I believe it is because of the flexibility that rosinstall provides. If a package can be installed via rosinstall, it's installation directory can be outside of the main ros dir and sometimes really should be since it's often used for building dev source. Then it's auto appended to the package path.
Kent Williams gravatar image Kent Williams  ( 2012-02-05 15:09:42 -0600 )edit
I think I see, but was hoping for a better installation. I.E. a start would have been to suggest this: rosinstall ~/ros/electric "" but the stacks would not be nested. Yuk. Giving your answer a thumbs-up because I asked the question poorly.
StrongEnough gravatar image StrongEnough  ( 2012-02-05 15:36:25 -0600 )edit

answered 2012-02-05 17:51:23 -0600

karthik gravatar image

Hi, My answer here might be of some help.

Thanks, Karthik

edit flag offensive delete link more

Question Tools


Asked: 2012-02-05 13:42:22 -0600

Seen: 355 times

Last updated: Feb 05 '12