Help with building hector_slam through catkin_make

asked 2018-07-16 12:47:29 -0600

hamzh.albar@gmail.com gravatar image

updated 2018-07-16 12:49:16 -0600

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 ???

edit retag flag offensive close merge delete

Comments

Can you not use apt to install it?

jayess gravatar image jayess  ( 2018-07-16 13:12:35 -0600 )edit

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

hamzh.albar@gmail.com gravatar image hamzh.albar@gmail.com  ( 2018-07-16 13:21:17 -0600 )edit

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.

jayess gravatar image jayess  ( 2018-07-16 13:25:32 -0600 )edit

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

jayess gravatar image jayess  ( 2018-07-16 13:27:04 -0600 )edit

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 ?

hamzh.albar@gmail.com gravatar image hamzh.albar@gmail.com  ( 2018-07-16 13:27:50 -0600 )edit

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

hamzh.albar@gmail.com gravatar image hamzh.albar@gmail.com  ( 2018-07-16 13:28:55 -0600 )edit

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

jayess gravatar image jayess  ( 2018-07-16 13:35:09 -0600 )edit

I added a new a question, thank you

hamzh.albar@gmail.com gravatar image hamzh.albar@gmail.com  ( 2018-07-16 13:56:38 -0600 )edit