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

Requests regarding how to set up experiments in ARGoS.
Arun_AR
Posts: 10
Joined: Tue Aug 22, 2017 6:37 am

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

Postby Arun_AR » Fri Apr 27, 2018 7:38 pm

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

Arun_AR
Posts: 10
Joined: Tue Aug 22, 2017 6:37 am

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

Postby Arun_AR » Fri Apr 27, 2018 8:59 pm

The ratio is 100 I suppose.

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

pincy
Site Admin
Posts: 282
Joined: Thu Mar 08, 2012 8:04 pm
Location: Boston, MA
Contact:

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

Postby pincy » Sat Apr 28, 2018 1:48 am

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.
I made ARGoS.


Return to “How to... ?”



cron