[ros-users] problem using ros_tutorials

Michael Styer michael at styer.net
Fri May 14 21:15:28 UTC 2010


Thanks for the suggestion, Felix. I found the real problem just now, 
though. I was running rosinstall under sudo, and sudo wasn't preserving 
$ROS_ROOT, so rosinstall failed to create setup.sh. Adding env_keep=* to 
the Defaults section in /etc/sudoers did the trick.

Mike

On 05/14/2010 01:56 PM, Felix Ruess wrote:
> Hi Mike,
>
> adding /opt/ros-tutorials to the ROS_PACKAGE_PATH should do the trick.
> Just change the linke in your bashrc accordingly:
> export ROS_PACKAGE_PATH=/opt/ros/stacks:/opt/ros-tutorials/ros_pkg_tutorials:/opt/ros-tutorials/ros_tutorials
>
> cheers, Felix
>
> On Fri, May 14, 2010 at 10:06 PM, Michael Styer<michael at styer.net>  wrote:
>    
>> Hello,
>>
>> I'm new to ROS and trying to work through the installation and tutorials,
>> but I'm having a little trouble and I'd love it if someone might be able to
>> help. I'm running 64-bit Fedora 12.
>>
>> Following directions on http://www.ros.org/wiki/ROS/Installation/Fedora,
>> I've installed ROS in /opt/ros, and the ROS tutorials in /opt/ros-tutorials.
>> When I try Step 1.2 in the "Creating a ROS package" tutorial, though, it
>> tells me there is no such package "ros_tutorials".
>>
>> Below is a sequence of commands showing more detail. I noticed that the file
>> "/opt/ros-tutorials/setup.sh" is empty, whereas "/opt/ros/setup.sh" has the
>> contents you see below. Is that correct? Or should that setup file have more
>> environment setup contents?
>>
>> Thanks for any advice; if there's any other information that would be
>> helpful, let me know.
>>
>> Mike
>>
>> 12:57:13 [michael at tablet ~]$ roscd ros_tutorials
>> roscd: No such package 'ros_tutorials'
>> 12:57:37 [michael at tablet ~]$ echo $ROS_ROOT
>> /opt/ros/ros
>> 12:57:44 [michael at tablet ~]$ ls /opt/ros*
>> /opt/ros:
>> ros  setup.sh  stacks  this.rosinstall
>>
>> /opt/ros-tutorials:
>> ros_pkg_tutorials  ros_tutorials  setup.sh  this.rosinstall
>> 12:57:52 [michael at tablet ~]$ cat /opt/ros-tutorials/setup.sh
>> 12:58:15 [michael at tablet ~]$ cat /opt/ros/setup.sh
>> export ROS_ROOT=/opt/ros/ros
>> export PATH=$ROS_ROOT/bin:$PATH
>> export PYTHONPATH=$ROS_ROOT/core/roslib/src:$PYTHONPATH
>> if [ ! "$ROS_MASTER_URI" ] ; then export
>> ROS_MASTER_URI=http://localhost:11311 ; fi
>> export ROS_PACKAGE_PATH=/opt/ros/stacks
>> source $ROS_ROOT/tools/rosbash/rosbash
>> 13:02:13 [michael at tablet ~]$
>>
>>
>> _______________________________________________
>> ros-users mailing list
>> ros-users at code.ros.org
>> https://code.ros.org/mailman/listinfo/ros-users
>>
>>
>>      
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>    



More information about the ros-users mailing list