Error while Compiling the ARGoS-Khepera IV SLAM

Discussions regarding ARGoS bugs. Report bugs here.
Ryan
Posts: 42
Joined: Wed Oct 23, 2019 3:26 am

Error while Compiling the ARGoS-Khepera IV SLAM

Postby Ryan » Sun Nov 17, 2019 11:47 am

Hey,

I'm trying to complied the project: https://github.com/cbsudux/KheperaIV-SLAM
But there are some errors as follow:

These errors occurs when reading lidar data. Maybe the update of API causes these error. So I check the class of 'TReadings' and founded 'CCI_KheperaIVLIDARSensor' was not in 'TReadings'. Meanwhile, I check the head file, it doesn't include the 'GetReadings()' function and just only have 'GetReading(UInt32 un_idx)'.

So can you give me some advice about these.

chirs@chirs-machine:~/argos_ws/KheperaIV-SLAM/build$ make
[ 12%] Automatic MOC for target offline_slam
[ 12%] Built target offline_slam_autogen
Scanning dependencies of target offline_slam
[ 25%] Building CXX object controllers/offline_slam/CMakeFiles/offline_slam.dir/offline_slam.cpp.o
/home/chirs/argos_ws/KheperaIV-SLAM/controllers/offline_slam/offline_slam.cpp: In member function ‘virtual void CKheperaIVManualControl::ControlStep()’:
/home/chirs/argos_ws/KheperaIV-SLAM/controllers/offline_slam/offline_slam.cpp:89:36: error: ‘TReadings’ in ‘class argos::CCI_KheperaIVLIDARSensor’ does not name a type
const CCI_KheperaIVLIDARSensor::TReadings& tLidarReads = m_pcLidar->GetReadings();
^~~~~~~~~
/home/chirs/argos_ws/KheperaIV-SLAM/controllers/offline_slam/offline_slam.cpp:122:33: error: ‘tLidarReads’ was not declared in this scope
for(size_t j = 0; j < tLidarReads.size(); ++j ){
^~~~~~~~~~~
/home/chirs/argos_ws/KheperaIV-SLAM/controllers/offline_slam/offline_slam.cpp:122:33: note: suggested alternative: ‘tOdomReads’
for(size_t j = 0; j < tLidarReads.size(); ++j ){
^~~~~~~~~~~
tOdomReads
controllers/offline_slam/CMakeFiles/offline_slam.dir/build.make:62: recipe for target 'controllers/offline_slam/CMakeFiles/offline_slam.dir/offline_slam.cpp.o' failed
make[2]: *** [controllers/offline_slam/CMakeFiles/offline_slam.dir/offline_slam.cpp.o] Error 1
CMakeFiles/Makefile2:104: recipe for target 'controllers/offline_slam/CMakeFiles/offline_slam.dir/all' failed
make[1]: *** [controllers/offline_slam/CMakeFiles/offline_slam.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
Attachments
1.png
1.png (144.48 KiB) Viewed 18045 times

Ryan
Posts: 42
Joined: Wed Oct 23, 2019 3:26 am

Re: Error while Compiling the ARGoS-Khepera IV SLAM

Postby Ryan » Fri Nov 22, 2019 9:03 am

I have successfully solved it.

krvmb
Posts: 2
Joined: Tue Mar 22, 2022 5:54 pm

Re: Error while Compiling the ARGoS-Khepera IV SLAM

Postby krvmb » Tue Apr 19, 2022 4:12 pm

How did you solve this error, I am having the same issue


Return to “Bugs”