Re: [PlayerStage-Gazebo] Interface Name Error

2009-11-25 Thread ximengzhu

Hi Neostek and hi all,
I have the same problem. I'm wasting time and time on having a working copy
of gazebo. I guess I have problems in the names of the interfaces but not
able to find more informations. How do the names work?

And more in deep, is playerv the right test to check gazebo integrity? Is
playerv working correctly?



Neostek wrote:
 
 Hi all,
 I'm a newbie in Gazebo/Player. My configuration is:
 
 - Ubuntu 9.04
 - gazebo rev. 7939
 - player 2.1.2
 - gcc version 4.3.3
 - ogre 1.6.2
 - ode  0.11.1
 
 I'm using the pioneer2at.world.  I launch gazebo:
 1) Gazebo
 $gazebo pioneer2at.world
 Gazebo multi-robot simulator, version 0.9.0
 
 Part of the Player/Stage Project [http://playerstage.sourceforge.net].
 Copyright (C) 2003 Nate Koenig, Andrew Howard, and contributors.
 Released under the GNU General Public License.
 
 [/root/InstallationPackages/gazebo/server/GazeboConfig.cc:103]
   Gazebo Path[/usr/local/share/gazebo]
 [/root/InstallationPackages/gazebo/server/GazeboConfig.cc:115]
   Ogre Path[/usr/local/lib/OGRE]
 creating /tmp/gazebo-root-0
 creating /tmp/gazebo-root-0/simulation.default 112 33842332
 creating /tmp/gazebo-root-0/factory.default 112 410188
 creating /tmp/gazebo-root-0/graphics3d.default 112 1630256
 creating /tmp/gazebo-root-0/graphics3d.plane1_model 112 1630256
 creating /tmp/gazebo-root-0/graphics3d.sphere1_model 112 1630256
 creating /tmp/gazebo-root-0/position.pioneer2dx_model1::position_iface_0
 112
 156
 creating /tmp/gazebo-root-0/graphics3d.pioneer2dx_model1 112 1630256
 creating /tmp/gazebo-root-0/laser.pioneer2dx_model1::laser::laser_iface_0
 112 8352
 creating
 /tmp/gazebo-root-0/fiducial.pioneer2dx_model1::laser::fiducial_iface_0 112
 11308
 creating /tmp/gazebo-root-0/graphics3d.pioneer2dx_model1::laser 112
 1630256
 creating /tmp/gazebo-root-0/graphics3d.box1_model 112 1630256
 creating /tmp/gazebo-root-0/graphics3d.directional_white 112 1630256
 creating /tmp/gazebo-root-0/graphics3d.point_white 112 1630256
 Gazebo successfully initialized
 
 2) I launch Player:
 $player gazebo.cfg
 Registering driver
 Player v.2.1.2
 
 * Part of the Player/Stage/Gazebo Project [
 http://playerstage.sourceforge.net].
 * Copyright (C) 2000 - 2006 Brian Gerkey, Richard Vaughan, Andrew Howard,
 * Nate Koenig, and contributors. Released under the GNU General Public
 License.
 * Player comes with ABSOLUTELY NO WARRANTY.  This is free software, and
 you
 * are welcome to redistribute it under certain conditions; see COPYING
 * for details.
 
 invoking player_driver_init()...
 
  * Part of the Player/Stage Project [http://playerstage.sourceforge.net]
  * Copyright 2000-2006 Richard Vaughan, Andrew Howard, Brian Gerkey,
 Nathan
 Koenig
  * and contributors. Released under the GNU General Public License v2.
 success
   Gazebo Plugin driver creating 1 device
 6665.31.0 is  a simulation interface.
 opening /tmp/gazebo-root-0
 opening /tmp/gazebo-root-0/simulation.default 112 33842332
   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.
 opening /tmp/gazebo-root-0/simulation.default +112 33842332
 listening on 6665
 Listening on ports: 6665
 accepted TCP client 0 on port 6665, fd 8
 
 3) I launch playerv:
 $playerv
 PlayerViewer 2.1.2
 Connecting to [localhost:6665]
 Available devices: localhost:6665
 simulation:0 gazebo  unsupported
 position2d:0 gazebo  ready
 laser:0  gazebo  ready
 playerc error   : timed out waiting for server reply to request
 player:0:request:3
 playerc error   : failed to get response
 playerv : error in pv_dev_position2d.c
   libplayerc error: failed to get response
 playerc error   : timed out waiting for server reply to request
 position2d:0:request:1
 playerv : error in pv_dev_position2d.c
   libplayerc error: timed out waiting for server reply to request
 position2d:0:request:1
 
 The problem is when I click on subscribe on a driver (I've tried to
 launch every driver, without succeed).
 I've already search about this problem but I haven't succeed to find a
 solution. I've only understood that it may be an interface name problem.
 Unfortunately, I didn't succeed to find a solution.
 Can you help me?
 Thanks a lot.   
 

-- 
View this message in context: 
http://old.nabble.com/Interface-Name-Error-tp26389932p26513335.html
Sent from the playerstage-gazebo mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Playerstage-gazebo mailing list

[PlayerStage-Gazebo] problems with heightmap and map

2009-06-25 Thread ximengzhu

Hello all,
I'm trying to use the heightMap but doesn't work. I get the message:

creating /tmp/gazebo-paolo-0/graphics3d.default 112 1629744
terminate called after throwing an instance of
'Ogre::InvalidParametersException'
  what():  OGRE EXCEPTION(2:InvalidParametersException): World geometry is
not supported by the generic SceneManager. in SceneManager::setWorldGeometry
at OgreSceneManager.cpp (line 1423)
Aborted

My OGRE is 1.6.2 and well installed, and gazebo svn.
I use the following tags in the world file

  model:physical name=terrain_model
body:heightmap name =terrain_body
  geom:heightmap name=terrain_geom
image../terrains/terrain.png/image
worldTextureterrain_texture.jpg/worldTexture
detailTextureterrain_detail.jpg/detailTexture
size1025 1025 10/size
  /geom:heightmap
/body:heightmap
  /model:physical

were ../terrains/terrain.png is a copy of the terrain.png file of the
examples, put in the right folder.
Any Idea?

Moreover, I'm trying to use a simple map:

  model:physical name=map
xyz0 0 0/xyz
statictrue/static
body:map name=map_body
  geom:map name=map_geom
imageterrain.png/image
threshold200/threshold
granularity2/granularity
negativefalse/negative
scale0.1/scale
materialGazebo/Rocky/material
  /geom:map
/body:map
  /model:physical

but it seems to me that the map doesn't provide a 3d representation of the
png image but only its extrusion with a certain threshold on the darkness of
a point to consider the point wall or nothing.
Is this correct?

Thank in advance,
XimengZhu




-- 
View this message in context: 
http://www.nabble.com/problems-with-heightmap-and-map-tp24187642p24187642.html
Sent from the playerstage-gazebo mailing list archive at Nabble.com.


--
___
Playerstage-gazebo mailing list
Playerstage-gazebo@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo


[PlayerStage-Gazebo] Ogre3d version

2009-06-22 Thread ximengzhu

Hello all,
I found that the ogre3d required version is now (gazebo release 7851) 1.6.1.
I have installed version 1.6.2 so the check does not go well. I've found
also that the gazebo/cmake/SearchForStuf.cmake file requires exactly version
1.6.1, however I have modified the file and put:
  pkg_check_modules(OGRE OGRE=${OGRE_VERSION})
instead of
  pkg_check_modules(OGRE OGRE=${OGRE_VERSION})
in line 21 of gazebo/cmake/SearchForStuf.cmake and the compilation went
well.

Is there a reason for the exclusion of newer version of ogre3d, or maybe
there is a bug in the file?
Thanks,
XimengZhu
-- 
View this message in context: 
http://www.nabble.com/Ogre3d-version-tp24059450p24059450.html
Sent from the playerstage-gazebo mailing list archive at Nabble.com.


--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
Playerstage-gazebo mailing list
Playerstage-gazebo@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo


Re: [PlayerStage-Gazebo] libgazeboplugin not working in gazebo svn r7669

2009-06-11 Thread ximengzhu

Hello all,
I recently discovered that the libgazeboplugin.so is not installed as
executable.
So I tried:

# sudo chmod 755 /usr/local/lib/libgazeboplugin.so

This command made libgazeboplugin.so executable. While libgazeboplugin of
release 7775 still doesn't work (segmentation faults in player while using
the plugin), latest (release r7804) libgazeboplugin works!!!
So, if someone get the same problem I had, try to change the permission of
the library.
Ximengzhu



Stephan Pleines wrote:
 
 I am experiencing the same problem with libgazeboplugin. Player says:
 
 error   : Failed to load plugin libgazeboplugin.so.
 error   : libtool reports error: file not found
 error   : plugin search path: *actual path of the file*
 error   : failed to load plugin: libgazeboplugin.so
 error   : failed to parse config file 
 gazebo/trunk/player_cfgs/gazebo.cfg driver blocks
 
 I am using the latest revisions of both player and gazebo.
 
 Stephan
 
 
 ximengzhu wrote:
 Hello all,
 I'm using gazebo svn and I recently tried to update and recompile. I got
 release 7669 and player is not able to load the libgazeboplugin, although
 it
 is correctly installed in the /usr/local/lib directory. Now I'm back to
 release 7561 that works quite well, but sometimes gazebo crashes saying

 ODE INTERNAL ERROR 2: invalid operation for locked space in dGeomMoved()
 Aborted

 This happens when I try to pick and move the pioneer with the mouse.
 I'm using gazebo on ubuntu 9.04 with player 2.1.1, ogre svn (1.6.2), ode
 0.11.

 I would like to try the latest gazebo svn, in view of the fact that some
 bugs have been resolved, as mouse picking and lights. Maybe I've done
 something wrong in the installation, I followed the Cmake standard
 procedure:
 $ cmake .
 $ make
 $ sudo make install

 (here is the output of cmake .)
 pa...@travbrenno:~/gazebo$ cmake .
 -- The C compiler identification is GNU
 -- The CXX compiler identification is GNU
 -- Check for working C compiler: /usr/bin/gcc
 -- Check for working C compiler: /usr/bin/gcc -- works
 -- Detecting C compiler ABI info
 -- Detecting C compiler ABI info - done
 -- Check for working CXX compiler: /usr/bin/c++
 -- Check for working CXX compiler: /usr/bin/c++ -- works
 -- Detecting CXX compiler ABI info
 -- Detecting CXX compiler ABI info - done
 -- Gazebo version 0.9.0
 -- == Finding 3rd Party Packages ==
 -- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
 -- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so -
 found
 -- Looking for gethostbyname
 -- Looking for gethostbyname - found
 -- Looking for connect
 -- Looking for connect - found
 -- Looking for remove
 -- Looking for remove - found
 -- Looking for shmat
 -- Looking for shmat - found
 -- Looking for IceConnectionNumber in ICE
 -- Looking for IceConnectionNumber in ICE - found
 -- Found X11: /usr/lib/libX11.so
 -- Found FLTK:
 fltk_images;fltk;fltk_gl;fltk_forms;/usr/lib/libSM.so;/usr/lib/libICE.so;/usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libm.so
 -- checking for module 'OGRE=1.6.1'
 --   found OGRE, version 1.6.2
 -- checking for module 'ode=0.10.1'
 --   found ode, version 0.11
 -- checking for module 'libxml-2.0'
 --   found libxml-2.0, version 2.6.32
 -- checking for module 'xft'
 --   found xft, version 2.1.13
 -- checking for module 'openal'
 --   found openal, version 1.3.253
 -- checking for module 'libavformat'
 --   found libavformat, version 52.31.0
 -- checking for module 'libavcodec'
 --   found libavcodec, version 52.20.0
 -- checking for module 'playerc++'
 --   found playerc++, version 2.1.1
 -- checking for module 'websim'
 --   package 'websim' not found
 -- Warning: Websim not found. Webgazebo will not be built
 -- Boost version: 1.35.0
 -- Found the following Boost libraries:
 -- Boost version: 1.35.0
 -- Found the following Boost libraries:
 --   thread
 --   signals
 -- Boost Include Path: /usr/include
 -- Boost Library Path: /usr/lib
 -- Boost Libraries:
 ;/usr/lib/libboost_thread-gcc43-mt-1_35.so;/usr/lib/libboost_signals-gcc43-mt-1_35.so
 -- Looking for FreeImage.h - found
 -- Looking for libfreeimage - found
 -- Looking for avformat.h - found
 -- Looking for avcodec.h - found
 -- Looking for event.h - found
 -- Looking for yaml.h - found
 -- 
 -- Build Type: RELEASE
 -- Install path: /usr/local
 -- Configuring done
 -- Generating done
 -- Build files have been written to: /home/paolo/gazebo
 pa...@travbrenno:~/gazebo$ 

 Any Idea?
 Thanks for your replies
 Ximengzhu


   
 
 --
 Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
 is a gathering of tech-side developers  brand creativity professionals.
 Meet
 the minds behind Google Creative Lab, Visual Complexity, Processing,  
 iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
 Group, R/GA,  Big Spaceship. http://www.creativitycat.com

[PlayerStage-Gazebo] how to set real time equal to simulation time?

2009-05-21 Thread ximengzhu

Dear all,
my question is the one of the title of the thread.
For my purpose I need to use the real time equal to the simulation time.
This means I need to set at one the multiplier of the real time.
Anyone knows how to?
Thanks in advance,
Ximengzhu
-- 
View this message in context: 
http://www.nabble.com/how-to-set-real-time-equal-to-simulation-time--tp23619214p23619214.html
Sent from the playerstage-gazebo mailing list archive at Nabble.com.


--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com 
___
Playerstage-gazebo mailing list
Playerstage-gazebo@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo


Re: [PlayerStage-Gazebo] libgazeboplugin not working in gazebo svn r7669

2009-05-21 Thread ximengzhu

Hello all,
I'm writing this message because I've found a temporary solution to this
problem and maybe someone could be interessed in it. I've been able to get a
stable and reliable installation of gazebo by using the release 7669, and
substituting the libgazeboplugin with the one provided in release 7561. I
still do not have any idea what is wrong in the libgazeboplugin provided by
release 7669.

However, this is ok for the start of my work but not for a long term usage,
since I 'm developing a controller for a pioneer on 3d surface and a
controller for a quadrotor, and so i need to recompile and reinstall gazebo
lots of times.

Thanks for your replies
Ximengzhu


-- 
View this message in context: 
http://www.nabble.com/libgazeboplugin-not-working-in-gazebo-svn-r7669-tp23560402p23619474.html
Sent from the playerstage-gazebo mailing list archive at Nabble.com.


--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com 
___
Playerstage-gazebo mailing list
Playerstage-gazebo@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo


[PlayerStage-Gazebo] Using pioneer with position3D on height map

2009-04-10 Thread ximengzhu

Hello all,
I'm new to gazebo and I'm trying to simulate a pioneer in a 3d environment.
I'm using the last svn version (7561) on ubuntu 8.10, player 2.1.1, ogre1.6
and ode0.11. I need to use the pioneer on a heightmap, receiving GPS and imu
measures.
I'm experimenting some issues in this work:

first, I've read that gps and imu are not supported yet, so I'm trying to
get the true 3d position from the simulator. However, I can't understand
which controller I can use to get the 3d pose of the pioneer. The following
is the model of the pioneer I'm using.

  model:physical name=pioneer2dx_model1
xyz0 0 1.145/xyz
rpy0.0 0.0 0.0/rpy

controller:differential_position2d name=controller1
  leftJointleft_wheel_hinge/leftJoint
  rightJointright_wheel_hinge/rightJoint
  wheelSeparation0.39/wheelSeparation
  wheelDiameter0.15/wheelDiameter
  torque5/torque
  interface:position name=position_iface_0/
/controller:differential_position2d

include embedded=true
  xi:include href=../positions/pioneer2dx.model /
/include

  /model:physical

Of course, the pioneer2dx.model file is the standard model.
the player cfg file that I use is:

driver
(
  name gazebo
  provides [simulation:0]
  plugin libgazeboplugin
  server_id default
  alwayson 1
)

driver
(
  name gazebo
  provides [position3d:0]
  gz_id position_iface_0
)

However, when I read the position in my c++ project I always get the z, roll
and pitch at 0.0. I think it is a problem of the controller (probably it is
stupid to use a 2d controller to get a position3d, isn't it?) but I can't
understand the right controller to use.

Second, I've tried to put the pioneer on a height map, but there is no
collision between the pioneer and the map. More, I've tried to put a ground
plane at 1 m of elevation, (also the pioneer of course), but still no
collision. In both cases, the result is that the pioneer falls on the ground
plane at elevation 0.

Any idea or suggestion?
My best regards,
XimengZhu (alias Paolo)
-- 
View this message in context: 
http://www.nabble.com/Using-pioneer-with-position3D-on-height-map-tp22805219p22805219.html
Sent from the playerstage-gazebo mailing list archive at Nabble.com.


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Playerstage-gazebo mailing list
Playerstage-gazebo@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo