From: Valentino <pun...@gm...> - 2010-04-19 21:46:06
|
Hi I'm using Gazebo svn 8612 with Player 3.0.1, Ogre 1.7.0 on ubuntu 9.10 64 bit version. All run well until, using playerv, I subscribe the camera interface causing a segfault in gazebo. This is the output of gazebo debug "gdb gazebo" after subscribing of the camera interface in Playerv Gazebo successfully initialized [New Thread 0x7fffe51b7910 (LWP 11321)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffe51b7910 (LWP 11321)] 0x00007ffff49fedf8 in gazebo::OgreCamera::GetVFOV() const () from /usr/local/lib/libgazebo_rendering.so (gdb) the problem seems caused by GetVFOV() function in Generic_Camera.cc line 131, but I am not able to solve it This is a piece of the world file: <model:physical name="pioneer2dx_model1"> <xyz>0 0 0.145</xyz> <rpy>0.0 0.0 0.0</rpy> <model:physical name="sonyvid30_model"> <xyz>0.15 0 0.09</xyz> <attach> <parentBody>chassis_body</parentBody> <myBody>sonyvid30_body</myBody> </attach> <include embedded="true"> <xi:include href="models/sonyvid30.model" /> </include> </model:physical> <include embedded="true"> <xi:include href="models/pioneer2dx.model" /> </include> </model:physical> and here there is a piece of config file of player: 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" ) Same problems appear on 2 notebooks (one with ati video card and one with nvidia) any advise ? Thanks in advance |
From: Valentino <pun...@gm...> - 2010-04-20 17:33:53
|
doing some testing, I noticed that while the definition of SONYVID30 is not incorporated in the model of PIONEER2DX in the Gazebo world file, subscribe the cam works well in PlayerV (although the colors are wrong). This is definition of my SonyVid30 in gazebo world file: <model:physical name="sonyvid30_model"> <xyz>0.15 0 0.09</xyz> <attach> <parentBody>chassis_body</parentBody> <myBody>sonyvid30_body</myBody> </attach> <include embedded="true"> <xi:include href="models/sonyvid30.model" /> </include> </model:physical> and this is the camera driver for player driver ( name "gazebo" provides ["camera:1"] gz_id "sonyvid30_model::camera_iface_0" ) ------------------- Of course I need that the Cam is included into definition of the robot like follow: <model:physical name="pioneer2dx_model1"> <xyz>-1 -1 1.145</xyz> <rpy>0.0 0.0 90.0</rpy> <model:physical name="sonyvid30_model"> <xyz>0.15 0 0.09</xyz> <attach> <parentBody>chassis_body</parentBody> <myBody>sonyvid30_body</myBody> </attach> <include embedded="true"> <xi:include href="models/sonyvid30.model" /> </include> </model:physical> <include embedded="true"> <xi:include href="models/pioneer2dx.model" /> </include> </model:physical> driver ( name "gazebo" provides ["camera:0"] gz_id "pioneer2dx_model1::sonyvid30_model::camera_iface_0" ) but in this case I get a segfault. Please Help me I'm stuck for days on this problem. Thanks 2010/4/19 Valentino <pun...@gm...>: > Hi > I'm using Gazebo svn 8612 with Player 3.0.1, Ogre 1.7.0 on ubuntu 9.10 > 64 bit version. All run well until, using playerv, I subscribe the > camera interface causing a segfault in gazebo. This is the output of > gazebo debug "gdb gazebo" after subscribing of the camera interface in > Playerv > > Gazebo successfully initialized > [New Thread 0x7fffe51b7910 (LWP 11321)] > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 0x7fffe51b7910 (LWP 11321)] > 0x00007ffff49fedf8 in gazebo::OgreCamera::GetVFOV() const () from > /usr/local/lib/libgazebo_rendering.so > (gdb) > > > the problem seems caused by GetVFOV() function in Generic_Camera.cc > line 131, but I am not able to solve it > > This is a piece of the world file: > > <model:physical name="pioneer2dx_model1"> > <xyz>0 0 0.145</xyz> > <rpy>0.0 0.0 0.0</rpy> > <model:physical name="sonyvid30_model"> > <xyz>0.15 0 0.09</xyz> > <attach> > <parentBody>chassis_body</parentBody> > <myBody>sonyvid30_body</myBody> > </attach> > <include embedded="true"> > <xi:include href="models/sonyvid30.model" /> > </include> > </model:physical> > <include embedded="true"> > <xi:include href="models/pioneer2dx.model" /> > </include> > </model:physical> > > and here there is a piece of config file of player: > > 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" > ) > > Same problems appear on 2 notebooks (one with ati video card and one > with nvidia) > any advise ? > > Thanks in advance > |