Ask Your Question
0

What should pwd be replaced with?

asked 2016-03-08 17:47:21 -0500

jbpark03 gravatar image

updated 2016-03-08 19:30:11 -0500

130s gravatar image

In the page

http://wiki.ros.org/image_transport/T...

$ ln -s `pwd`/image_common/image_transport/tutorial/ ./src/image_transport_tutorial

command appears. Here 'pwd' should be replaced with something else. What could it be?

Thanks

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
4

answered 2016-03-08 19:22:41 -0500

130s gravatar image

I don't think you need to replace pwd in the command you referred to. On Ubuntu (and other Linux I assume), surrounded by buckquote "`" symbol, the output of command is filled in.

So if you follow the tutorial line-by-line, you should be at ~/image_transport_ws/, which pwd command will return and that's what the tutorial you linked to expects.

edit flag offensive delete link more
-1

answered 2016-03-08 20:45:46 -0500

jbpark03 gravatar image

updated 2016-03-09 10:11:22 -0500

130s gravatar image

Thank you a lot. You helped me today.

Here is one more thing though. In the tutorial people would find

$ cd ~/image_transport_ws/
$ git clone https://github.com/ros-perception/image_common.git
$ mkdir src
$ ln -s `pwd`/image_common/image_transport/tutorial/ ./src/image_transport_tutorial

These lines need to be fixed as follows, I believe and the changes worked.

$ cd ~/image_transport_ws/
$ cd src
$ git clone https://github.com/ros-perception/image_common.git
$ ln -s `pwd`/image_common/image_transport/tutorial/ image_transport_tutorial
edit flag offensive delete link more

Comments

2

Please don't use answer section to post your comment. Also if you think you find a wrong statement on ROS wiki, you're encouraged to add modification.

130s gravatar image 130s  ( 2016-03-08 22:01:24 -0500 )edit
1

Your proposed fix puts the entire image_common repository into the catkin workspace, which is not what is intended by the directions for the tutorial.

ahendrix gravatar image ahendrix  ( 2016-03-08 22:06:19 -0500 )edit

@ahendrix is right; Your fix works but not in the way the tutorial intends.

130s gravatar image 130s  ( 2016-03-09 10:15:47 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-03-08 17:47:21 -0500

Seen: 306 times

Last updated: Mar 09 '16