Page 1 of 1

Optimize old configuration for argos 3.0.0-beta35

Posted: Thu Jun 04, 2015 2:34 pm
by syam
Hello,

I want to run the configuration given in http://iridia.ulb.ac.be/~cpinciroli/ext ... 30.tar.bz2.

I am using the latest version of argos with lua5.2.

When I try to build the code using cmake, I get the following errors

Code: Select all

CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message): Could NOT find Lua51 (missing: LUA_LIBRARIES LUA_INCLUDE_DIR) Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-2.8/Modules/FindLua51.cmake:76 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:4 (find_package)
Therefore, I installed lua5.1 and when I cmake again, the build environment was set. But, when I build using make, I get the following errors

Code: Select all

[100%] Building CXX object CMakeFiles/landmarks.dir/landmarks.cpp.o In file included from /home/lucky/Downloads/INFO-H-414-SR/src/landmarks.h:1:0, from /home/lucky/Downloads/INFO-H-414-SR/src/landmarks.cpp:1: /usr/include/argos3/core/simulator/loop_functions.h: In member function ‘virtual void CLandmarks::PostStep()’: /usr/include/argos3/core/simulator/loop_functions.h:237:15: error: ‘argos::CSpace& argos::CLoopFunctions::m_cSpace’ is private CSpace& m_cSpace; ^ /home/lucky/Downloads/INFO-H-414-SR/src/landmarks.cpp:101:34: error: within this context CSpace::TMapPerType& cFBMap = m_cSpace.GetEntitiesByType("foot-bot"); ^ In file included from /home/lucky/Downloads/INFO-H-414-SR/src/landmarks.h:1:0, from /home/lucky/Downloads/INFO-H-414-SR/src/landmarks.cpp:1: /usr/include/argos3/core/simulator/loop_functions.h:237:15: error: ‘argos::CSpace& argos::CLoopFunctions::m_cSpace’ is private CSpace& m_cSpace; ^ /home/lucky/Downloads/INFO-H-414-SR/src/landmarks.cpp:121:18: error: within this context m_cOutFile << m_cSpace.GetSimulationClock() << "\t" ^ /home/lucky/Downloads/INFO-H-414-SR/src/landmarks.cpp: In member function ‘argos::SInt32 CLandmarks::AtTarget(argos::CFootBotEntity&)’: /home/lucky/Downloads/INFO-H-414-SR/src/landmarks.cpp:200:59: error: ‘class argos::CEmbodiedEntity’ has no member named ‘GetPosition’ if(SquareDistance(CVector2(c_fb.GetEmbodiedEntity().GetPosition().GetX(), ^ /home/lucky/Downloads/INFO-H-414-SR/src/landmarks.cpp:201:59: error: ‘class argos::CEmbodiedEntity’ has no member named ‘GetPosition’ c_fb.GetEmbodiedEntity().GetPosition().GetY()), ^ make[2]: *** [CMakeFiles/landmarks.dir/landmarks.cpp.o] Error 1 make[1]: *** [CMakeFiles/landmarks.dir/all] Error 2 make: *** [all] Error 2
Could you please tell me how this configuration could be optimized for new version of argos.

Re: Optimize old configuration for argos 3.0.0-beta35

Posted: Thu Jun 04, 2015 9:05 pm
by pincy
Hi syam,

Try this one: http://iridia.ulb.ac.be/~cpinciroli/ext ... 04.tar.bz2

The instructions to compile and run are the same.

Cheers,
Carlo

Re: Optimize old configuration for argos 3.0.0-beta35

Posted: Fri Jun 05, 2015 1:26 am
by syam
Thanks Carlo. Configuration works without any issues.