Sorry, my first post was'nt really clear, I have write it too fast.
So, I added the camera sensor in the .argos file wih this line in the sensors section :
Code: Select all
<colored_blob_omnidirectional_camera implementation="rot_z_only" medium="leds" show_rays="true" />
I assume that is working because I can launch the argos simulator without error in the terminal.
I read the "ci_colored_blob_omnidirectional_camera_sensor.h" file, and I have see these lines :
Code: Select all
/* Color */
CColor Color;
/* Angle */
CRadians Angle;
/* Distance in cms */
Real Distance;
So, I assume that we have three output with this sensors :
- "Angle", which is the angle in radian between the front of the footbot and the led that he detected
- "Distance", which is the distance in cm between the bot and the led that he detected
- "Color", which is the color of the led that the bot detected
So, I have several questions :
What is the kind of output of "Color" ? Is this a RGB code, or the name of the color like "red" if the leds are defined with color="red" ?
What is the line to get this output in a variable in a LUA script ? Will the following line work for getting the angle ?
Code: Select all
color_angle = robot.colored_blob_omnidirectional_camera.angle
If it work to the angle, is it the same syntax to get the color output ?
My objective is to detect materials (which are movable cylinders) with the footbot. To do that, I put a red led in the top of the materials, and I use the colored omnidirectionnal camera to detect them.
After the detection of a material by a footbot, I want that the footbot get the material with his gripper and move it.
Sorry for my first post, it is my mind which did not working properly
