Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
How is it possible to have a match between the map in stage and the mapfile
Stage has like 2 scale factors and mapfile has 1 scale .
How is it possible to have the same map on both ?
These one either must go to the faq or have something fixed.
Institute for Systems and Robotics
University of Coimbra
From: Brian Gerkey <brian@ge...> - 2006-02-13 18:20:05
On Feb 9, 2006, at 2:15 PM, smog zer wrote:
> How is it possible to have a match between the map in stage and the
> mapfile proxy ?
> Stage has like 2 scale factors and mapfile has 1 scale .
> How is it possible to have the same map on both ?
> These one either must go to the faq or have something fixed.
When loading a bitmap file to use as a background, Stage allows you
specify the size in meters of the bitmap. This determines the m/
pixel resolution of the image.
Stage also allows you to specify the m/pixel resolution of the
simulation grid. This setting is independent of the resolution of
any bitmaps that were loaded (though of course there's little point
in make the simulation resolution much finer than the bitmap
resolutions); it controls the spatial granularity of the simulation,
which trades off precision against computation.
The latter quantity is internal to Stage, not visible in any drivers
or client-side proxies.
Btw, the map support in Stage is now quite good; in Player/Stage 2.0,
the map can be retrieved directly from stage without the need to load
it separately with the 'mapfile' driver. Thus you can specify the
map size/resolution in just one place (the .world file).
From: Daniel Cruz <daniel.cruz@ok...> - 2006-02-13 22:15:36
Does anybody know if it is possible to configure the CameraProxy to
save and overwrite the same image in the disk?. I want to check if it
is possible to configure the driver this way instead of modifying it.
Daniel Cruz wrote:
> Does anybody know if it is possible to configure the CameraProxy to save
> and overwrite the same image in the disk?. I want to check if it is
> possible to configure the driver this way instead of modifying it.
I was going to suggest just saving it to the file name, until I looked
at the CameraProxy in 2.0. I'm not sure it will do that right now. So,
I'l update that method such that if aWidth is 0, no name numbering would
be added. Then, you could just always write to the same file. If
you're using Player 1.6.5, I'd suggest doing the same.
I'm not able to get to Player today, but I'll try to get that change
made tomorrow morning sometime. If you're going to do it before then, a
patch is always welcome.