/kilolib_vrep

Personal adaptation of the V-REP child script for the Kilobot provided by K-TEAM in order to use the newer Kilolib API in the V-REP simulator.

Primary LanguageLua

Personal adaptation of the V-REP child script for the Kilobot (and controller) provided by K-TEAM in order to use the newer Kilolib C API in the V-REP simulator.

The following functions are available to the user (similar to those from kilolib, see https://www.kilobotics.com/labs for a step by step introduction):

  • message_rx()
  • message_tx()
  • message_tx_success()
  • setup()
  • loop()
  • get_ambient_light()
  • set_motion()
  • blink() - a bit faulty for the moment due to the simulation of a sleep()function using state variables (inspired from the original k-team implementation)
  • set_motor()
  • set_color()

A default scene containing two Kilobots and one controller is provided. The unique id of each robot can be set through the use of the robotID parameter. In code the unique id is accessible as kilo_uid as in the Kilolib (C), see setup() for details.

Acknowledgments