Page 1 of 1

Ratio between distance shown by omnidirectional_camera[i].distance and unit values we input in arena size.

Posted: Fri Apr 27, 2018 7:38 pm
by Arun_AR
When a robot's omni_directional_camera is enabled it detects light.

The output for this command in lua is a distance

Code: Select all

robot.colored_blob_omnidirectional_camera[i].distance
When we define the entire arena we mentions its dimensions.

Code: Select all

<arena size="6, 6, 1" center="0, 0, 0.5" color = "255,0,0">

What is the ratio between 6 the side of our arena and the distance output of colored blob omnidirectional camera output


Would be very grateful for a reply. Thanks

Re: Ratio between distance shown by omnidirectional_camera[i].distance and unit values we input in arena size.

Posted: Fri Apr 27, 2018 8:59 pm
by Arun_AR
The ratio is 100 I suppose.

I checked the colored_blob_omindirectional_camera.distance output and difference betwwen location of robot and light source.

Re: Ratio between distance shown by omnidirectional_camera[i].distance and unit values we input in arena size.

Posted: Sat Apr 28, 2018 1:48 am
by pincy
All the sensors returning distance do it in cm, speeds in actuators are in cm/s. If you're working in a robot controller, always assume cm.

Instead, the .argos file is all in meters.