Ask Your Question
0

beginner: creating existing package

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

bsk gravatar image

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

Hello,

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 http://wiki.ros.org/catkin/Tutorials/... tutorial. Next tutorial is http://wiki.ros.org/catkin/Tutorials/... , 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?

Thanks,

Basak

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted
0

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

bsk gravatar image

The answer that i need is "overlaying". When i was looking similar questions i found this answer http://answers.ros.org/question/37764...

Anyway i just followed overlaying workspace tutorial. http://wiki.ros.org/catkin/Tutorials/... .

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

edit flag offensive delete link more
0

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

ROSkinect gravatar image

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

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 https://github.com/tu-darmstadt-ros-p...

now build, back to your catkin_ws folder

cd /path/to/your/catkin_ws/

catkin_make

Tutorials

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

http://wiki.ros.org/

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

Learning ROS for Robotics Programming

edit flag offensive delete link more
0

answered 2016-05-16 05:16:57 -0600

lfr gravatar image

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

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: https://github.com/tu-darmstadt-ros-p... but I don't verify if it is good.

Anyway, you can use these packages as a basis.

edit flag offensive delete link more

Comments

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 http://wiki.ros.org/catkin/Tutorials/... tutorial with that darmstadt repository. do you think this would solve my problem?

bsk gravatar imagebsk ( 2016-05-16 05:32:50 -0600 )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 imagelfr ( 2016-05-16 05:52:05 -0600 )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 imagebsk ( 2016-05-16 06:23:17 -0600 )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 imagelfr ( 2016-05-16 07:15:47 -0600 )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 imagelfr ( 2016-05-16 07:16:34 -0600 )edit

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

bsk gravatar imagebsk ( 2016-05-16 09:33:08 -0600 )edit

The one which speaks about the git clone.

lfr gravatar imagelfr ( 2016-05-17 01:51:02 -0600 )edit

can you give the link of the tutorial please?

bsk gravatar imagebsk ( 2016-05-18 01:55:17 -0600 )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-05-16 04:36:29 -0600

Seen: 1,618 times

Last updated: May 18 '16