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

New to ros.

asked 2012-05-24 08:38:56 -0500

updated 2012-05-24 09:56:24 -0500

Lorenz gravatar image

I am trying to go through tutorial to create a new package in current directory which is i think ROS, but getting following mistake,can someone help me out in this

shailendraparihar@ubuntu:/opt/ros/electric/ros$ roscreate-pkg beginner_tutorials std_msgs rospy roscpp
Traceback (most recent call last):
  File "/opt/ros/electric/ros/bin/roscreate-pkg", line 35, in <module>
  File "/opt/ros/electric/ros/tools/roscreate/src/roscreate/", line 126, in roscreatepkg_main
    create_package(package, author_name(), depends, uses_roscpp=uses_roscpp, uses_rospy=uses_rospy)
  File "/opt/ros/electric/ros/tools/roscreate/src/roscreate/", line 63, in create_package
  File "/usr/lib/python2.6/", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/opt/ros/electric/ros/beginner_tutorials'
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-05-24 09:03:19 -0500

Lorenz gravatar image

You should not create any files in /opt/ros. Instead, you should set up an overlay in your home directory. Have a look at this tutorial.

edit flag offensive delete link more

answered 2012-05-24 09:14:09 -0500

hey Lorenz, thanks for the reply,i think i was doing certain mistake,or i think due to some reasons i wasnt able to navigate from my home directory to ros_workspace,problem is solved now,thanks for the reply and sorry for that silly question as i am very new to ros as well as linux

edit flag offensive delete link more


@srj0408 Please use the comments space to reply to answers, not another answer space. And also please accept @Lorenz's answer so others known your question has an acceptable answer.

tfoote gravatar image tfoote  ( 2012-05-25 06:58:42 -0500 )edit

Question Tools


Asked: 2012-05-24 08:38:56 -0500

Seen: 550 times

Last updated: May 24 '12