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

beginner: creating existing package

asked 2016-05-16 04:36:29 -0500

bsk gravatar image

updated 2016-05-16 04:46:12 -0500


I want to modify hector_slam. So, for a rearrangeable hector_slam I think i should create and build or install hector_slam in catkin_ws right?

I looked the tutorials and got confused so much. I created catkin_ws by following tutorial. Next tutorial is , description is how to create a NEW ros package using catkin. But I want to create/build or install an existing package(hector_slam) so should i follow this tutorial anyway?



edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2016-05-18 09:15:01 -0500

bsk gravatar image

The answer that i need is "overlaying". When i was looking similar questions i found this answer

Anyway i just followed overlaying workspace tutorial. .

Now i am able to modify the packages (in my case hector_slam) as i want.

edit flag offensive delete link more

answered 2016-05-18 10:06:00 -0500

ROSkinect gravatar image

updated 2016-05-18 10:07:47 -0500

All you have to do is to follow those steps:

go to workspace src space

cd /path/to/your/catkin_ws/src

#clone it from its repository

git clone

now build, back to your catkin_ws folder

cd /path/to/your/catkin_ws/



And concerning tutorials you can learn from the wiki over here:

Or from books, for example, the one I learned/learn from:

Learning ROS for Robotics Programming

edit flag offensive delete link more

answered 2016-05-16 05:16:57 -0500

lfr gravatar image

updated 2016-05-16 05:26:08 -0500

Hello !

I don't know why you want to modify hector_slam package but if you want to do this, you have to get the sources for hector_slam package (and not the binary build). I found this repository: but I don't verify if it is good.

Anyway, you can use these packages as a basis.

edit flag offensive delete link more


I know that repository. My problem was that i dont understand what to do after creating a workspace. I didnt create anything in catkin_ws but I tried to do tutorial with that darmstadt repository. do you think this would solve my problem?

bsk gravatar image bsk  ( 2016-05-16 05:32:50 -0500 )edit

The repository provides already made packages. You just have to copy the ones you want in your catkin workspace.

But first of all, I recommend you to learn all beginner tutorials. It is the minimum required in order to use ROS correctly (and to have a better understanding).

lfr gravatar image lfr  ( 2016-05-16 05:52:05 -0500 )edit

As i said before my problem is that i found some of the tutorials (even the beginner tutorials) confusing. So while reading and applying tutorials i am asking some help in here.

bsk gravatar image bsk  ( 2016-05-16 06:23:17 -0500 )edit

Yes I understood. I am just trying to tell you how to modify the hector_slam package. It is well what you want, no ?

lfr gravatar image lfr  ( 2016-05-16 07:15:47 -0500 )edit

To answer your question again, you have to copy the packages you want of the repository (as indicated in the tutorial) in the workspace you have created (in the workspace/src). Then you can modify the sources as you prefer. I hope it helps you.

lfr gravatar image lfr  ( 2016-05-16 07:16:34 -0500 )edit

yes, i wanna modify them :) sorry but which tutorial are you talking about?

bsk gravatar image bsk  ( 2016-05-16 09:33:08 -0500 )edit

The one which speaks about the git clone.

lfr gravatar image lfr  ( 2016-05-17 01:51:02 -0500 )edit

can you give the link of the tutorial please?

bsk gravatar image bsk  ( 2016-05-18 01:55:17 -0500 )edit

Question Tools

1 follower


Asked: 2016-05-16 04:36:29 -0500

Seen: 2,677 times

Last updated: May 18 '16