Again, I ran into a problem. Player, for some reason, expects the camera interface file to be zero bytes long, like this:

 Gazebo Plugin driver creating 1 device
    6665.40.0 is  a camera interface.
Error Subscribing to Gazebo Camera Interface
expected file size: 0 < 921736

(with 921736 indeed being the size of the camera iface file.)

Is this a bug or an error on my part?
I am using a modified version of the terrain world file with an added camera sensor

  <model:physical name="cam1_model">
    <body:empty name="cam1_body">
      <sensor:camera name="cam1_sensor">
       <imageSize>640 480</imageSize>
        <controller:generic_camera name="cam1_controller">
          <interface:camera name="camera_iface_0"/>
        </controller:generic_camera>
      </sensor:camera>
    </body:empty>
  </model:physical>

and the default gazebo.cfg file with the camera section uncommented. (And, still, CVS/SVN versions of Player/Gazebo).
Thans in advance!

-sg

On Jan 19, 2008 6:02 PM, sg _ <sgantispam@googlemail.com> wrote:
Oops, my bad, just realized my mistake. (The keyword here, as so often, was "rtfm").
Thanks again for your help with the problem above :) !

All the best,
sg


On Jan 18, 2008 3:46 PM, sg _ < sgantispam@googlemail.com> wrote:
I have tried it out and the in new version I can subscribe and see the laser sensor and subscribe to (but not command from
playerv) position2d. The example programs, however, can access position2d through player, so that is not a problem.

My main concern now is that the camera access still does not work (but for a different reason, it seems).
Here is what happens in player:


  Gazebo Plugin driver creating 1 device
    6665.31.0 is  a simulation interface.
opening /tmp/gazebo-reflecs-0
opening /tmp/gazebo-reflecs-0/simulation.default 112 688
  Gazebo Plugin driver creating 1 device
    6665.4.0 is  a position2d interface.
  Gazebo Plugin driver creating 1 device
    6665.6.0 is  a laser interface.
  Gazebo Plugin driver creating 1 device
    6665.40.0 is  a camera interface.
Error Subscribing to Gazebo Camera Interface
error opening device file /tmp/gazebo-reflecs-0/camera.camera_iface_1 : No such file or directory

My first suspicion was that the world files simply did not define a camera, so I checked but found that suspicion to be false for the files I am using for testing (simpleshapes and terrain).

The only thing gazebo says concerning the camera is this

"[server/sensors/Sensor.cc:94]
  cam1_sensor sensor has no controller."

before starting to output lines of "Visual Node Pose[Pos[0 0 0] Rot[1 0 0 0]]" until terminated.

So I'm kind of stuck again and would appreciate a little help ;)

All the best,
sg



On Jan 17, 2008 9:20 AM, sg _ < sgantispam@googlemail.com> wrote:
Thank you very much, I'm trying this out right away!

-sg


On Jan 16, 2008 8:02 PM, Nate Koenig < nkoenig@usc.edu> wrote:
Hello,

I just put back a change to SVN gazebo that should fix the player
interface issue.

-nate

On Jan 14, 2008 3:07 PM, sg antispam < sgantispam@googlemail.com> wrote:
> (I just realized I had the word 'spam' in this account name (indeed,
> unhelpful) and am reposting this with a new name. So, sorry about the
> double-post.)
>
>
>
> Hello,
>
> I have been trying to get player to run with gazebo for quite some time now,
> without any luck.
> I am using the current SVN/CVS versions of both. Both install okay and
> gazebo runs okay (-ish..), too. Player, however, does not.
> It coredumps either when I try to subscribe to anything
> (position2d,laser,camera) using playerv or right after loading if I set
> "alwayson" to 1 for the camera driver in the config file.
>
> This is what happens in both cases:
> $ player -d9 gazebo/player/gazebo.cfg
> [...]
> trying to load /home/reflecs/gazebo/player
> /libgazeboplugin...
> success
> invoking player_driver_init()...
> [...]
>  success
>   Gazebo Plugin driver creating 1 device
>     6665.31.0 is  a simulation interface.
> opening /tmp/gazebo-reflecs-0
> opening /tmp/gazebo-reflecs-0/simulation.default 112 688
>   Gazebo Plugin driver creating 1 device
>     6665.4.0 is  a position2d interface.
>   Gazebo Plugin driver creating 1 device
>     6665.6.0 is  a laser interface.
>   Gazebo Plugin driver creating 1 device
>     6665.40.0 is  a camera interface.
> terminate called after throwing an instance of 'std::string'
> Aborted (core dumped)
>
>
> .. and thats it :(
> Any ideas on what to do would be greatly appreciated!
>
> Thanks in advance,
> sg
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
>
> _______________________________________________
> Playerstage-users mailing list
> Playerstage-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Playerstage-users mailing list
Playerstage-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-users