Library loading error after trying get a new sensor in the controller file
Posted: Thu Jun 04, 2020 12:58 pm
Hi,
I am currently designing a new sensor and trying to apply it into controller file.
After building the updated files, there was no compilation errors. However, it causes error when I tried to run the file.
The error is below:
[FATAL] Error initializing controllers
[FATAL] Can't load library "build/controllers/footbot_phero/libfootbot_phero" even after trying to add extensions for shared library (so) and module library (so):
/usr/local/lib/argos3/build/controllers/footbot_phero/libfootbot_phero: /usr/local/lib/argos3/build/controllers/footbot_phero/libfootbot_phero: cannot open shared object file: No such file or directory
/usr/local/lib/argos3/build/controllers/footbot_phero/libfootbot_phero.so: /usr/local/lib/argos3/build/controllers/footbot_phero/libfootbot_phero.so: cannot open shared object file: No such file or directory
/usr/local/lib/argos3/build/controllers/footbot_phero/libfootbot_phero.so: OK
To figure out why the problem has occurred, I repeated debugging and I've found that this line of code led this error.
After commenting out the last line of code (getting a pheromone sensor), it worked perfectly well. Do you know why this might cause a problem when I load a library even though it is successfully compiled? Where should I take a deep look into? The idea of sensor is that I generate a matrix with the size of arena in the loop function which contains values and the sensor read the value from the loop function. The controller is trying to get the value from the matrix retrieved by the sensor.
Thank you very much
I am currently designing a new sensor and trying to apply it into controller file.
After building the updated files, there was no compilation errors. However, it causes error when I tried to run the file.
The error is below:
[FATAL] Error initializing controllers
[FATAL] Can't load library "build/controllers/footbot_phero/libfootbot_phero" even after trying to add extensions for shared library (so) and module library (so):
/usr/local/lib/argos3/build/controllers/footbot_phero/libfootbot_phero: /usr/local/lib/argos3/build/controllers/footbot_phero/libfootbot_phero: cannot open shared object file: No such file or directory
/usr/local/lib/argos3/build/controllers/footbot_phero/libfootbot_phero.so: /usr/local/lib/argos3/build/controllers/footbot_phero/libfootbot_phero.so: cannot open shared object file: No such file or directory
/usr/local/lib/argos3/build/controllers/footbot_phero/libfootbot_phero.so: OK
To figure out why the problem has occurred, I repeated debugging and I've found that this line of code led this error.
Code: Select all
m_pcWheels = GetActuator<CCI_DifferentialSteeringActuator>("differential_steering");
m_pcProximity = GetSensor <CCI_FootBotProximitySensor >("footbot_proximity" );
m_pcLight = GetSensor <CCI_FootBotLightSensor >("footbot_light" );
m_pcPhero = GetSensor <CCI_FootBotPheroSensor >("footbot_phero" ); // This is my new sensor
Thank you very much
