Hi guys,
Please remove my previous patch.
And apply this patch:
Index: server/World.cc
===================================================================
--- server/World.cc (revision 8631)
+++ server/World.cc (working copy)
@@ -585,9 +585,9 @@
if (parent != NULL)
model->Attach(node->GetChild("attach"));
- else
+ //else
// Add the model to our list
- this->models.push_back(model);
+ this->models.push_back(model);
return model;
}
This is a quick and dirty fix, use at your on risk. Right now the
attached models do not have their Update function called. The
Model::Update function calls the Controller::Update function ( for
stuff the PTZ ). I assume something smarter will be done in the
future inside Model::Attach, possibly register the attached model with
the parent so it can call the attached controllers.
This will cause a segfault on exit, since some models are destructed twice.
The PTZ tilt will lock at the extremes, you will probably need to mess
with sony30vid.model's force and mass params. Pan works fine.
The BGR problem seems to be an Ogre thing. The camera requests a
Ogre::PF_R8G8B8 pixel format and Ogre::TextManager ignores it ( and
Ogre docs say that is okay). A good spot to flip it is probably in
player/CameraInterface.cc Update function where it copies the data to
the player interface.
-Scott
On Thu, Apr 29, 2010 at 5:32 AM, Valentino <[email protected]> wrote:
> Thanks Scott, the patch fix the segfault problem.
> As said by Pual, there is a problem with PTZ that doesn't reacts to
> movement commands. No error messages appears. Can you help us ?
>
> Thks
>
> 2010/4/29 Paul Osmialowski <[email protected]>:
>> This is configuration file I am using for having position2d, camera and ptz:
>> driver
>> (
>> name "gazebo"
>> provides ["simulation:0"]
>> plugin "libgazeboplugin"
>> server_id "default"
>> )
>>
>> driver
>> (
>> name "gazebo"
>> provides ["position2d:0"]
>> gz_id "pioneer2dx_model1::position_iface_0"
>> )
>>
>> driver
>> (
>> name "gazebo"
>> provides ["camera:0"]
>> gz_id "pioneer2dx_model1::sonyvid30_model::camera_iface_0"
>> # alwayson 1
>> # save 0
>> )
>> driver
>> (
>> name "gazebo"
>> provides ["ptz:0"]
>> gz_id "pioneer2dx_model1::sonyvid30_model::ptz_iface_1"
>> )
>>
>> (from previous post:)
>> Unfortunately, ptz interface is not working right. Also I discovered that
>> 'stall' field of position2d interface is not set, so it is not possible to
>> quickly determine if collision occured.
>>
>> Paul
>>
>>>
>>> On Wed, 28 Apr 2010, Scott Biddlestone wrote:
>>>
>>>> Sorry, I guess the attachment didn't go through. It is very short so I
>>>> will just inline it:
>>>>
>>>> Index: server/World.cc
>>>> ===================================================================
>>>> --- server/World.cc (revision 8631)
>>>> +++ server/World.cc (working copy)
>>>> @@ -287,6 +287,8 @@
>>>>
>>>> this->factory->Init();
>>>> this->saveStateTimer.Start();
>>>> +
>>>> + SensorManager::Instance()->Init();
>>>> }
>>>>
>>>>
>>>> ////////////////////////////////////////////////////////////////////////////////
>>>>
>>>> -Scott
>>>>
>>>> On Wed, Apr 28, 2010 at 5:07 PM, Paul Osmialowski <[email protected]>
>>>> wrote:
>>>> > I am sorry, I can't find attached patch, where is it?
>>>> > > Paul
>>>> > > On Wed, 28 Apr 2010, Scott Biddlestone wrote:
>>>> > > > The attached patch fixes the segfault ( it just calls
>>>> > > SensorManager::Instance()->Init() ) in World::Init(). This patch is
>>>> > > against the SVN head.
>>>> > > > > The color order is still reversed as previously described. ( BGR
>>>> > > > > vs. > > RGB )
>>>> > > > > Let me know if it works for you as well. I tested this with Ogre
>>>> > > > > 1.6.5
>>>> > > Ode 0.11.1 and SVN versions of gazebo and player.
>>>> > > > > -Scott
>>>> > > > > > > > > On Wed, Apr 28, 2010 at 6:42 AM, Valentino
>>>> > > > > > > > > <[email protected]> > > wrote:
>>>> > > > I'm trying unsuccessfully to work with the sonyvid30 in gazebo
>>>> > > > svn,
>>>> > > > but when I subscribe the device (using playerV), gazebo ends in
>>>> > > > segfault. Am I the only one who has problems with this device? If
>>>> > > > someone is using it successfully can you please tell me which > >
>>>> > > > > version
>>>> > > > of Gazebo, Ogre, Ode, and Player are using?
>>>> > > > thanks
>>>> > > > > > >
>>>> > > > > > > ------------------------------------------------------------------------------
>>>> > > > _______________________________________________
>>>> > > > Playerstage-gazebo mailing list
>>>> > > > [email protected]
>>>> > > > https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>>>> > > > > > > >
>>>> > > > > > > > ------------------------------------------------------------------------------
>>>> > _______________________________________________
>>>> > Playerstage-gazebo mailing list
>>>> > [email protected]
>>>> > https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>>>> >
>>>>
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Playerstage-gazebo mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>>>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Playerstage-gazebo mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>>
>>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Playerstage-gazebo mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>
------------------------------------------------------------------------------
_______________________________________________
Playerstage-gazebo mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo