Robotics StackExchange | Archived questions

Help with building hector_slam through catkin_make

Hello I'm trying to install hector slam on ~/catkin_ws/src folder through , git clone .....

After I install the package, I run catkin_make but after it reaches like %30 , the rasberrypi freezes and I can't move the mouse anymore.

If I unplug the pi and then replug it back, and afterr running catkin_make it will to %80 then freeze again !!

I tried using catkin_make -j1 but same thing happened

I'm not sure if I should just wait more or there is something wrong ???

Asked by hamzh.albar@gmail.com on 2018-07-16 12:47:29 UTC

Comments

Can you not use apt to install it?

Asked by jayess on 2018-07-16 13:12:35 UTC

I did, but I'm not sure how to edit the lunch file if I use apt because after I lunch roslaunch hector_slam_launch tutorial.launch I don't get the map from my rplidar After doing some research, I think I need to edit some launch file, like the one on the tutorial here

Asked by hamzh.albar@gmail.com on 2018-07-16 13:21:17 UTC

It's actually not a good idea to edit files from other packages. What you should do is create your own launch file instead and use the contents of the installed package (launch files, nodes, etc.). If/when you update hector_slam you'll lose all of your changes if you modify its code.

Asked by jayess on 2018-07-16 13:25:32 UTC

That tutorial is showing you the easiest, quickest way to get something going not the best way.

Asked by jayess on 2018-07-16 13:27:04 UTC

Can you explain more please ? My rplidar works fine, and it shows up on rviz but after I runroslaunch hector_slam_launch tutorial.launch nothing shows on the grid ! What should I do ?

Asked by hamzh.albar@gmail.com on 2018-07-16 13:27:50 UTC

Also, when I install hector_slam using apt, where I should fine the launch file ?? I mean on what directory ?

Asked by hamzh.albar@gmail.com on 2018-07-16 13:28:55 UTC

I'd suggest creating a new question for this line of questioning then we can figure things out.

Asked by jayess on 2018-07-16 13:35:09 UTC

I added a new a question, thank you

Asked by hamzh.albar@gmail.com on 2018-07-16 13:56:38 UTC

Is this it? #q297591

Asked by jayess on 2018-07-16 14:18:57 UTC

Answers