Page 1 of 1

Error while Compiling the ARGoS-Khepera IV SLAM

Posted: Sun Nov 17, 2019 11:47 am
by Ryan

I'm trying to complied the project:
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 ){
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

Re: Error while Compiling the ARGoS-Khepera IV SLAM

Posted: Fri Nov 22, 2019 9:03 am
by Ryan
I have successfully solved it.