hello_nezumi
hello_nezumi

Reputation: 35

Create ros package

I am trying to follow this site.

I want to realize this source on rviz.

I have done the following.

  1. Created a ROS package

catkin_create_pkg pkg_name roscpp

  1. Created CMakeList

  2. Inserted source file

    pkg_name/src/sorce.cpp

  3. catkin_make

~/pkg_name$ catkin_make

Then, I got the following error

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

How can this be resolved?

Upvotes: 0

Views: 3600

Answers (1)

akshayk07
akshayk07

Reputation: 2200

You have to first create a workspace. Follow this link. Then inside your workspace's src folder, you can create your package following this link. These are links to ROS Wiki tutorials which you should go through if you are new to ROS.

Upvotes: 1

Related Questions