ilpincy / argos3-kilobot

Kilobot plugin for the multi-robot ARGoS3 simulator
15 stars 14 forks source link

Error while trying to run the experiment. #7

Closed vinay-k-pisharody closed 6 years ago

vinay-k-pisharody commented 6 years ago

I was trying to run the kilobot_blinky.argos when I got the following Error. I am not really sure what is causing the error.

[FATAL] Failed to initialize the space. [FATAL] Failed to initialize entity "kb1". [FATAL] Failed to initialize controllable entity "controller_0". [FATAL] Can't set controller for controllable entity "controller_0" [FATAL] Symbol "kilobot_led (default)" not found

mstalamali commented 6 years ago

Hi Vinay,

Could you please let me know if you have kilobot_led_default_actuator.cpp and kilobot_led_default_actuator.h files in your argos3-kilobot/src/plugins/robots/kilobot/simulator ?

Thanks, Salah

vinay-k-pisharody commented 6 years ago

Dear Salah,

Yes they are in the directory.

mstalamali commented 6 years ago

Could you please comment the line of in the kilobot_blinky.argos file and let me know if it works?

Which OS are you using?

vinay-k-pisharody commented 6 years ago

I commented out the line in kilobot_led_default_actuator.cpp. It did not work. Still getting the same error.

mstalamali commented 6 years ago

Sorry, you should comment the line in the kilobot_blinky.argos not in kilobot_led_default_actuator.cpp . Please retry and let me know.

ilpincy commented 6 years ago

I can't reproduce the issue - the example works for me.

  1. What OS are you using, and what version of ARGoS?
  2. Can you post the output of argos3 -q all?
  3. How did you install the Kilobot plugin? Did you remember to run make install?
  4. Did you modify the code or the file kilobot_blinky.argos in any way?

As you do these tests, make sure all the files you're using are in their original version. There does not seem to be any bug in the code at the moment.

vinay-k-pisharody commented 6 years ago

@slhtlm The simulation screen comes up. The robot is displayed. But nothing happens. Possibly because the actuator is commented out?

@ilpincy I havent changed the code in any way. It is as I cloned it from the repo. I am using Ubuntu and ARGoS version 3.0.0-beta51. The argos3-examples worked perfectly.

ilpincy commented 6 years ago

Can you reply to all my points?

vinay-k-pisharody commented 6 years ago
  1. Ubuntu and Argos 3.0.0-beta51

[INFO] Loaded library "/(path-to-kilobot)/argos3-kilobot/build/plugins/robots/kilobot/libargos3plugin_simulator_kilobot.so"
[INFO] Loaded library "/usr/lib/argos3/libargos3plugin_simulator_dynamics3d.so"
[INFO] Loaded library "/usr/lib/argos3/libargos3plugin_simulator_qtopengl.so"
[INFO] Loaded library "/usr/lib/argos3/libargos3plugin_simulator_genericrobot.so"
[INFO] Loaded library "/usr/lib/argos3/libargos3plugin_simulator_footbot.so"
[INFO] Loaded library "/usr/lib/argos3/libargos3plugin_simulator_media.so"
[INFO] Loaded library "/usr/lib/argos3/libargos3plugin_simulator_spiri.so"
[INFO] Loaded library "/usr/lib/argos3/libargos3core_simulator.so"
[INFO] Loaded library "/usr/lib/argos3/libargos3plugin_simulator_pointmass3d.so"
[INFO] Loaded library "/usr/lib/argos3/libargos3plugin_simulator_prototype.so"
[INFO] Loaded library "/usr/lib/argos3/libargos3plugin_simulator_dynamics2d.so"
[INFO] Loaded library "/usr/lib/argos3/libargos3plugin_simulator_entities.so"
[INFO] Loaded library "/usr/lib/argos3/libargos3plugin_simulator_epuck.so"
[INFO] Loaded library "/usr/lib/argos3/libargos3plugin_simulator_eyebot.so"
AVAILABLE ACTUATORS

AVAILABLE SENSORS

AVAILABLE PHYSICS ENGINES

   [ dynamics2d ]
      A 2D dynamics physics engine.

   [ dynamics3d ]
      A 3D dynamics physics engine

   [ pointmass3d ]
      A 3D point-mass physics engine.

AVAILABLE MEDIA

AVAILABLE VISUALIZATIONS

   [ qt-opengl ]
      An interactive graphical renderer based on QT and OpenGL.

AVAILABLE ENTITIES

   [ box ]
      A stretchable 3D box.

   [ cylinder ]
      A stretchable cylinder.

   [ e-puck ]
      The e-puck robot.

   [ eye-bot ]
      The eye-bot robot, developed in the Swarmanoid project.

   [ floor ]
      It contains the properties of the arena floor.

   [ foot-bot ]
      The foot-bot robot, developed in the Swarmanoid project.

   [ kilobot ]
      The Kilobot robot, developed at Harvard University.

   [ light ]
      A colored light.

   [ prototype ]
      A generic and configurable entity

   [ spiri ]
      The spiri robot, developed by Pleiades Robotics.
  1. I used only make as in Readme. Retried with make install. Didnt work out.

  2. No I havent modified the code.

ilpincy commented 6 years ago

Your installation is not correct. The output of argos3 -q all is missing many devices, for some reason.

I used only make as in Readme. Retried with make install. Didnt work out.

What didn't work out? If you want us to help, please be precise and report commands you tried and output.

In the meantime, I'll fix the README to add the command sudo make install at the end of the process.

vinay-k-pisharody commented 6 years ago

I tried running the same sudo argos -q all and it gave the following output for sensors and actuators.

AVAILABLE ACTUATORS

   [ differential_steering (default) ]
      The differential steering actuator.

   [ directional_leds (default) ]
      The directional LEDs actuator.

   [ footbot_distance_scanner (default) ]
      The foot-bot distance scanner actuator.

   [ footbot_gripper (default) ]
      The footbot gripper actuator.

   [ footbot_turret (default) ]
      The foot-bot turret actuator.

   [ gripper (default) ]
      The Gripper actuator.

   [ joints (default) ]
      The prototype joints actuator: controls a prototype entity's joints.

   [ kilobot_communication (default) ]
      The Kilobot communication actuator.

   [ kilobot_led (default) ]
      The Kilobot LED actuator.

   [ leds (default) ]
      The LEDs actuator.

   [ magnets (default) ]
      The (electro)magnet actuator.

   [ quadrotor_position (default) ]
      The quadrotor position actuator.

   [ quadrotor_speed (default) ]
      The quadrotor speed actuator.

   [ radios (default) ]
      A generic radio actuator to send messages to nearby radios.

   [ range_and_bearing (default) ]
      The range and bearing actuator.

AVAILABLE SENSORS

   [ battery (default) ]
      A generic battery level sensor.

   [ cameras (default) ]
      A generic multi-camera sensor capable of running various algorithms

   [ colored_blob_omnidirectional_camera (rot_z_only) ]
      A generic omnidirectional camera sensor to detect colored blobs.

   [ colored_blob_perspective_camera (default) ]
      A generic perspective camera sensor to detect colored blobs.

   [ differential_steering (default) ]
      A generic differential steering sensor.

   [ eyebot_light (rot_z_only) ]
      The eye-bot light sensor (optimized for 2D).

   [ eyebot_proximity (default) ]
      The eye-bot proximity sensor.

   [ footbot_base_ground (rot_z_only) ]
      The foot-bot base ground sensor.

   [ footbot_distance_scanner (rot_z_only) ]
      The foot-bot distance scanner sensor (optimized for 2D).

   [ footbot_light (rot_z_only) ]
      The foot-bot light sensor (optimized for 2D).

   [ footbot_motor_ground (rot_z_only) ]
      The foot-bot motor ground sensor.

   [ footbot_proximity (default) ]
      The foot-bot proximity sensor.

   [ footbot_turret_encoder (default) ]
      The foot-bot turret encoder sensor.

   [ ground (rot_z_only) ]
      A generic ground sensor (optimized for 2D).

   [ joints (default) ]
      The prototype joints sensor: monitors a prototype entity's joints.

   [ kilobot_communication (default) ]
      The Kilobot communication sensor.

   [ kilobot_light (rot_z_only) ]
      The kilobot light sensor (optimized for 2D).

   [ light (default) ]
      A generic light sensor.

   [ positioning (default) ]
      A generic positioning sensor.

   [ proximity (default) ]
      A generic proximity sensor.

   [ radios (default) ]
      A generic radio sensor to receive messages from nearby radios.

   [ range_and_bearing (medium) ]
      The range-and-bearing sensor.

Upon running argos3 as super user, the example worked. Thankyou for your help.

ilpincy commented 6 years ago

ARGoS should not be run as superuser. Check your installation to make sure that the permissions of /usr/lib/argos3 and the files therein are all 755.

vinay-k-pisharody commented 6 years ago

I tried 755 as well as 777. Didn't work for me. The output was the same.