Robotics StackExchange | Archived questions

cannot touch sensorinformation.msg

hi everyone,

whenever im trying to follow 1.3.5 from hrwros course and have to put in : touch SensorInformation.msg

it returns the following error: touch: 'SensorInformation.msg': permission denied

i am in the correct path :"/opt/ros/kinetic/share/hrwros_msgs/msg" and i am in the hrwros shell

greetings sebastiaan

Asked by girpon on 2018-10-08 15:28:03 UTC

Comments

I appreciate you trying to use ROS Answers for this, but the course you are referring to has a dedicated forum available for questions.

It's not we don't want to help you here, but you have a much higher chance of getting answers if you use the appropriate place to ask the questions.

Asked by gvdhoorn on 2018-10-09 01:52:28 UTC

But just to comment on your question:

hrwros_msgs is not a package that is installed in /opt/ros, so I'm confused as to how it would end up there.

Asked by gvdhoorn on 2018-10-09 01:53:23 UTC

I used the command roscd hrwros_msgs

And it changd the oath to the one i posted above

Asked by girpon on 2018-10-09 02:29:29 UTC

Please post this on the course forum. If/when you do, please include all commands you used and how you setup everything.

Asked by gvdhoorn on 2018-10-09 02:36:24 UTC

Could you link me the forum? I cannot find it by googleing for it. :(

Asked by girpon on 2018-10-09 02:41:36 UTC

If you have access to the course page on edX is under the Discussion tab.

Asked by gvdhoorn on 2018-10-09 02:54:09 UTC

thanks, posted my question, but the discussion doesnt seem active tho

Asked by girpon on 2018-10-09 05:21:38 UTC

The course instructors are most likely not F5-ing the discussion forum all the time. You'll have to be a little patient or lookup older posts about the same / similar problems.

Asked by gvdhoorn on 2018-10-09 05:34:13 UTC

isnt there a general reason for a "permission denied" error?

Asked by girpon on 2018-10-09 05:48:35 UTC

yes: you are trying to write something in a directory that you don't have permissions to.

But as I wrote earlier: afaik the hrwros_msgs package should not be in /opt/ros but in your workspace.

Asked by gvdhoorn on 2018-10-09 05:57:54 UTC

yeah, i manually directed to $HOME/ROS/hrwros_ws/src/hrwros/hrwros_msgs/msg and it worked. so i guess "roscd" just got me to the wrong folder. any clue why?

Asked by girpon on 2018-10-09 06:00:18 UTC

Answers

Hello With my knowledge "roscd hrwros_msgs" take you in a wrong direction. if you try "cd /home//hrwros_ws/src/hrwros/hrwros_msgs/msg" and then touch your msg file, then it works fine.

Best Wishes

Asked by navidn on 2019-12-04 05:57:04 UTC

Comments