Hypha-ROS / hypharos_racecar

Low-cost, high speed (600USD, 3 m/s) 1/10 Autonomous ROS RaceCar (with tutorial for beginner)
https://hypharosworkshop.wordpress.com/
GNU Lesser General Public License v3.0
260 stars 112 forks source link

Catkin_make error #16

Closed speronig closed 5 years ago

speronig commented 5 years ago

hi when i try to run the catkin_make comand at the end of the 'Initial Settings' page in the tutorial, I get this error:

7

any help?

speronig commented 5 years ago

also I'm getting this error:

/home/giambo/catkin_ws/src/mapir-ros-pkgs/src/rf2o_laser_odometry/src/CLaserOdometry2D.cpp:900:29: error: no match for ‘operator+’ (operand types are ‘mrpt::poses::CPose3D’ and ‘mrpt::poses::CPose2D’) laser_pose = laser_pose + pose_aux_2D;

which i think it is where it all starts

haochihlin commented 5 years ago

Hi The error seems came from rf2o_laser_odometry. In this repo, we used an early version of rf2o_laser_odometry, which has some bugs insides. Therefore, we add some patches in the forked folder. You can find the fixed file as below: https://github.com/Hypha-ROS/hypharos_racecar/tree/ver.1-release/document/replace_files/rf2o

Please find the "Document Replacement" on page 13 of the tutorial: https://github.com/Hypha-ROS/hypharos_racecar/blob/ver.1-release/document/Hypha-ROS-RaceCar-Tutorial_V1.1.pdf

leizhao3 commented 3 years ago

Hi All, I also encountered the same issue when I was trying to catkin_make Hypharos_racecar recently. Here is my solution & it works out for me:

Step 1: Copy all other files to catkin_ws/src, followed by the code below: ~catkin_ws/src: git clone https://github.com/MAPIRlab/rf2o_laser_odometry # Not from "https://github.com/MAPIRlab/mapir-ros-pkgs.git" from the documents since that repo is retired. ~catkin_ws/src: cd .. ~catkin_ws: catkin_make

Step 2: Document replacement as mentioned by @haochihlin

Step 3: Rebuild the workspace again: ~catkin_ws: catkin_make