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

Error when using catkin_make command

asked 2017-01-02 08:54:27 -0500

Werewolf_86 gravatar image

Hi,

I was going through this tutorial : http://wiki.ros.org/rviz/Tutorials/Ma...

I went step by step through the tutorial. Everything went well until i tried executing the command: catkin_make

It gives me error:

The specified base path "/home/rajesh/using_markers" contains a package but "catkin_make" must be invoked in the root of workspace

I don't know how to fix this error before proceeding with the tutorial. I appreciate any help.

Thanks and regards.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2017-01-02 10:18:22 -0500

paulbovbel gravatar image

You should go through this tutorial ( http://wiki.ros.org/catkin/Tutorials ) to learn how to use workspaces and packages.

edit flag offensive delete link more
0

answered 2018-05-06 20:14:34 -0500

Do the following:

Goto your workspace,

$ cd "your workspace path"


So,

$ ls

You will see something as

build devel src


Now execute your command-line: "$ catkin_make"

$ catkin_make


Your error occur because you are not in the workspace directory, you can see the folder in this command

$ echo $ROS_PACKAGE_PATH


If the folder not exists, you can create,

$ mkdir ~/catkin_ws/src


Copy your folder to ~/catkin_ws/src

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2017-01-02 08:54:27 -0500

Seen: 481 times

Last updated: Jan 02 '17