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

errno 13 roscreate

asked 2011-05-31 08:33:13 -0500

younghistory gravatar image

having trouble with the roscreate command. its giving me a permissions errror

roscreate-pkg enclosure_escape rospy std_msgs irobot_create_2_1 Traceback (most recent call last): File "/opt/ros/diamondback/ros/bin/roscreate-pkg", line 35, in <module> roscreate.roscreatepkg.roscreatepkg_main() File "/opt/ros/diamondback/ros/tools/roscreate/src/roscreate/roscreatepkg.py", line 126, in roscreatepkg_main create_package(package, author_name(), depends, uses_roscpp=uses_roscpp, uses_rospy=uses_rospy) File "/opt/ros/diamondback/ros/tools/roscreate/src/roscreate/roscreatepkg.py", line 63, in create_package os.makedirs(p) File "/usr/lib/python2.6/os.py", line 157, in makedirs mkdir(name, mode) OSError: [Errno 13] Permission denied: '/opt/ros/diamondback/ros/enclosure_escape

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2011-05-31 08:41:52 -0500

You need root permissions to create files in /opt/ros/diamondback/ros

Instead, you should create them somewhere in your user directory, for example, ~/ros

You will need to set your $ROS_PACKAGE_PATH variable to let ROS know to look into that directory. To do so, edit your /opt/ros/diamondback/setup.sh file to include these lines:

export ROS_PACKAGE_PATH=~/ros

export ROS_PACKAGE_PATH=/opt/ros/diamondback/stacks:${ROS_PACKAGE_PATH}

edit flag offensive delete link more

Comments

haha yep i just realized that...THANKS!!!!!
younghistory gravatar image younghistory  ( 2011-05-31 08:43:27 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2011-05-31 08:33:13 -0500

Seen: 1,313 times

Last updated: May 31 '11