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

How do i remove this error while executing publisher subscriber in ros?

asked 2016-05-14 10:31:30 -0600

dinesh gravatar image

updated 2016-05-14 11:19:56 -0600

i've got this error:

The specified base path "/home/dinesh/catkin_ws/src/beginner_tutorials" contains a package but "catkin_make" must be invoked in the root of workspace.

How can i remove it? I'm trying to run the pub/sub program.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-05-14 11:22:42 -0600

As the error says catkin_make must be invoked in the root of the workspace. What this means is that you must change your directory to be in the root of the workspace before running catkin_make.

cd /home/dinesh/catkin_ws

The tutorials make reference to this behavior. Although I think they often leave out an explicit call to cd. Hope that helps!

edit flag offensive delete link more


got it, thanks, new to linux so, little confusion.

dinesh gravatar image dinesh  ( 2016-05-15 14:06:51 -0600 )edit

Question Tools

1 follower


Asked: 2016-05-14 10:31:30 -0600

Seen: 112 times

Last updated: May 14 '16