Using player/stage with custom robots
Christof <[email protected]> Mon, 26 May 2014 22:11:16 +0200
| Newsgroups | gmane.science.robotics.playerstage |
|---|---|
| Message-ID | <[email protected]> |
Hi,
i am trying to implement a robot population which can detect other
robots via sonar/ranger devices. Unfortunately, my robot position model
does not work as intended.
This is my position model:
define robot position
(
model()
# actual size
size [0.1 0.1 0.2]
origin [0 0 0 45]
bitmap "bitmaps/circle.png"
# positional things
drive "diff"
obstacle_return 0
ranger_return 1
laser_return 1
# sensors attached to robot
laser_sensor()
)
and my robots look like this:
robot
(
name "r0"
pose [ 6 6 0 151]
color "blue"
ranger_return 1
)
Without the model() line the rangers do not work correctly. They only
detect walls, not the other robots besides the ranger_return 1.
With the model() line the rangers work correctly. But somehow, the
robots have not the intended sizes, colors, and shapes.
I attached screenshots to show my problem and the world file. I use
stage.hh to setup my world and control the robots.
Does anyone know how to fix this problem? If there is more knowledge
needed to fix this problem please ask me.
Greetings,
Christof
------------------------------------------------------------------------------
The best possible search technologies are now affordable for all companies.
Download your FREE open source Enterprise Search Engine today!
Our experts will assist you in its installation for $59/mo, no commitment.
Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk
_______________________________________________
Playerstage-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-developers
playerstage with model.png
(image/png, 17.4 KB) - not displayed
playerstage without model.png
(image/png, 16 KB) - not displayed
roboter.world
(text/plain, 955 B)
include "map.inc" paused 1 # configure the GUI window window ( show_data 1 ) # load an environment bitmap floorplan ( bitmap "bitmaps/empty.png" size [30 30 1.5] ) define lasersonar sensor ( # define the size of each transducer [xsize ysize zsize] in meters size [0.01 0.01 0.01] # define the range bounds [min max] range [1 2.5] # define the angular field of view in degrees fov 361 samples 360 # define the color that ranges are drawn in the gui color_rgba [0 1 0 0.5] ) define laser_sensor ranger ( lasersonar( pose [0 0 0 45] ) ) define robot position ( #model() # actual size size [0.1 0.1 0.2] origin [0 0 0 45] bitmap "bitmaps/circle.png" # positional things drive "diff" obstacle_return 0 ranger_return 1 laser_return 1 # sensors attached to robot laser_sensor() ) robot ( name "r0" pose [ 6 6 0 151] color "blue" ranger_return 1 ) robot ( name "r1" pose [ 5 5 0 -107] color "green" ranger_return 1 )