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

New to ros.

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

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

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>
    roscreate.roscreatepkg.roscreatepkg_main()
  File "/opt/ros/electric/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/electric/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/electric/ros/beginner_tutorials'
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

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

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
0

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

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

Comments

@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 -0600 )edit

Question Tools

Stats

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

Seen: 566 times

Last updated: May 24 '12