Re: Segfault subscribing the camera interface

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Segfault subscribing the camera interface

valentino
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
Reply | Threaded
Open this post in threaded view
|

Re: Segfault subscribing the camera interface

Paul Osmialowski


On Wed, 28 Apr 2010, Valentino 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
>
I have the same (however I'm using videoplayer instead of playerv).
Solution for this is desperatly needed: I'd be more than happy being able
to show gazebo in action while I'll be talking about Player in next two
weeks.
Also, I have problems with laser readings, playerv draws them wrong way so
I assume they are not correct.
Currently I'm using svn version of gazebo.

Paul


------------------------------------------------------------------------------
_______________________________________________
Playerstage-gazebo mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
Reply | Threaded
Open this post in threaded view
|

Re: Segfault subscribing the camera interface

Scott Biddlestone-2
In reply to this post by valentino
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 <[hidden email]> 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
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>

------------------------------------------------------------------------------

_______________________________________________
Playerstage-gazebo mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
Reply | Threaded
Open this post in threaded view
|

Re: Segfault subscribing the camera interface

Paul Osmialowski
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 <[hidden email]> 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
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>>
>

------------------------------------------------------------------------------
_______________________________________________
Playerstage-gazebo mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
Reply | Threaded
Open this post in threaded view
|

Re: Segfault subscribing the camera interface

Scott Biddlestone-2
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 <[hidden email]> 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 <[hidden email]> 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
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>>>
>>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Playerstage-gazebo mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>

------------------------------------------------------------------------------
_______________________________________________
Playerstage-gazebo mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
Reply | Threaded
Open this post in threaded view
|

Re: Segfault subscribing the camera interface

Paul Osmialowski
Wow, that is amazing, like playing FPP game. 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 <[hidden email]> 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 <[hidden email]> 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
>>>> [hidden email]
>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>>>>
>>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Playerstage-gazebo mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Playerstage-gazebo mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>
------------------------------------------------------------------------------

_______________________________________________
Playerstage-gazebo mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
Reply | Threaded
Open this post in threaded view
|

Re: Segfault subscribing the camera interface

Paul Osmialowski
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 <[hidden email]>
>>  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 <[hidden email]>
>> > >  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
>> > > >  [hidden email]
>> > > >  https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>> > > >
>> > >
>> >
>> >  ------------------------------------------------------------------------------
>> >  _______________________________________________
>> >  Playerstage-gazebo mailing list
>> >  [hidden email]
>> >  https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>> >
>>
>>  ------------------------------------------------------------------------------
>>  _______________________________________________
>>  Playerstage-gazebo mailing list
>>  [hidden email]
>>  https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>>
>
------------------------------------------------------------------------------

_______________________________________________
Playerstage-gazebo mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
Reply | Threaded
Open this post in threaded view
|

Re: Segfault subscribing the camera interface

valentino
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 <[hidden email]>:

> 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 <[hidden email]>
>>>  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
>>> > > > > > > > > <[hidden email]> > >  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
>>> > > >  [hidden email]
>>> > > >  https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>>> > > > > > > >
>>> > > > > > > >  ------------------------------------------------------------------------------
>>> >  _______________________________________________
>>> >  Playerstage-gazebo mailing list
>>> >  [hidden email]
>>> >  https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>>> >
>>>
>>>  ------------------------------------------------------------------------------
>>>  _______________________________________________
>>>  Playerstage-gazebo mailing list
>>>  [hidden email]
>>>  https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>>>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Playerstage-gazebo mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>
>

------------------------------------------------------------------------------
_______________________________________________
Playerstage-gazebo mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
Reply | Threaded
Open this post in threaded view
|

Re: Segfault subscribing the camera interface

Scott Biddlestone-2
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 <[hidden email]> 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 <[hidden email]>:
>> 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 <[hidden email]>
>>>>  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
>>>> > > > > > > > > <[hidden email]> > >  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
>>>> > > >  [hidden email]
>>>> > > >  https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>>>> > > > > > > >
>>>> > > > > > > >  ------------------------------------------------------------------------------
>>>> >  _______________________________________________
>>>> >  Playerstage-gazebo mailing list
>>>> >  [hidden email]
>>>> >  https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>>>> >
>>>>
>>>>  ------------------------------------------------------------------------------
>>>>  _______________________________________________
>>>>  Playerstage-gazebo mailing list
>>>>  [hidden email]
>>>>  https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>>>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Playerstage-gazebo mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>>
>>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Playerstage-gazebo mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>

------------------------------------------------------------------------------
_______________________________________________
Playerstage-gazebo mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
Reply | Threaded
Open this post in threaded view
|

Re: Segfault subscribing the camera interface

Paul Osmialowski
Hi Scott,

Panning is now working fine, unfortunately, position2d velocity commands
now drives both robot and both pan and tilt of camera! Previous patch was
better, as basic functionality (position2d operations) was preserved.

Paul

On Fri, 30 Apr 2010, Scott Biddlestone wrote:

> 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 <[hidden email]> 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 <[hidden email]>:
>>> 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 <[hidden email]>
>>>>>  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
>>>>>>>>>>>>> <[hidden email]> > >  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
>>>>>>>>  [hidden email]
>>>>>>>>  https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>>>>>>>>>>>>
>>>>>>>>>>>>  ------------------------------------------------------------------------------
>>>>>>  _______________________________________________
>>>>>>  Playerstage-gazebo mailing list
>>>>>>  [hidden email]
>>>>>>  https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>>>>>>
>>>>>
>>>>>  ------------------------------------------------------------------------------
>>>>>  _______________________________________________
>>>>>  Playerstage-gazebo mailing list
>>>>>  [hidden email]
>>>>>  https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>>>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Playerstage-gazebo mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>>>
>>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Playerstage-gazebo mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Playerstage-gazebo mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>
------------------------------------------------------------------------------

_______________________________________________
Playerstage-gazebo mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo