Optimize old configuration for argos 3.0.0-beta35

Requests regarding how to set up experiments in ARGoS.
syam
Posts: 2
Joined: Sat May 30, 2015 10:04 am

Optimize old configuration for argos 3.0.0-beta35

Postby syam » Thu Jun 04, 2015 2:34 pm

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.

pincy
Site Admin
Posts: 632
Joined: Thu Mar 08, 2012 8:04 pm
Location: Boston, MA
Contact:

Re: Optimize old configuration for argos 3.0.0-beta35

Postby pincy » Thu Jun 04, 2015 9:05 pm

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
I made ARGoS.

syam
Posts: 2
Joined: Sat May 30, 2015 10:04 am

Re: Optimize old configuration for argos 3.0.0-beta35

Postby syam » Fri Jun 05, 2015 1:26 am

Thanks Carlo. Configuration works without any issues.


Return to “How to... ?”