Hello,

Gazebo only has a few built in shapes (unit_cube, unit_sphere,
unit_cylinder). If you need other shapes, then you'll have to model
these using 3D modeling utility like Blender.

Take a look at gazebo/worlds/models/bandit.model for an example of a
custom humanoid using custom meshes.

-nate

On Mon, Nov 3, 2008 at 5:58 AM, Cappy <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I'm very new to gazebo, so I apologize if this is all stupid. I'm sure with
> some help and with time I can grow up to be able to make valuable
> contributions.
>
> I'm using gazebo 0.8 pre3 and I would like to create a custom model of a
> humanoid robot. I want to build it from cuboids, which I need to shape a
> bit, because the body parts are not exactly perfect cubes. I can't figure
> out how to do that and I don't know where else to look for information.
>
> I read the documentation
> http://playerstage.sourceforge.net/doc/Gazebo-manual-0.8.0-pre1-html/tutorial_model.html
> and the example given there doesn't work. I suggest using this model as an
> example:
>
> <model:physical name="box_model">
>  <xyz>0 0 5</xyz>
>  <rpy>0.0 0.0 0.0</rpy>
>  <canonicalBody>box1_body</canonicalBody>
>  <static>false</static>
>
>  <body:box name="box1_body">
>  <xyz>0 0 0</xyz>
>  <rpy>0.0 0.0 0.0</rpy>
>    <geom:box name="box_geom">
>
>      <size>1 1 1</size>
>      <mass>1.0</mass>
>
>      <visual>
>        <xyz>0.0 0.0 0.0</xyz>
>        <rpy>0.0 0.0 0.0</rpy>
>        <mesh>unit_box</mesh>
>        <material>Gazebo/BumpyMetal</material>
>      </visual>
>
>    </geom:box>
>  </body:box>
> </model:physical>
>
> The example drops a unit cube from a height of 5 meters. The value of the
> canonicalBody property of the model container has to precisely match the
> name of the body container inside the model, or you get a segmentation
> fault. I couldn't figure out what "density" does, but if you change it to
> "mass" you can influence the mass of the object and make it bounce more or
> less for example. The mesh and the material have to be enclosed in a visual
> container, this was missing in the documentation. And the default mesh
> didn't work for me. I found the unit_cube in the examples that came with
> gazebo.
>
> Well now I tried to create a simple cuboid model, which is not a perfect
> cube. But if I use the unit_cube as a mesh, the visual appearance doesn't
> reflect the shape of the body correctly. Is there a mesh that I can shape
> with parameters? Or do I need to create a custom mesh for every distinct
> cuboid I create?
>
>
> Thanks
> Cappy
> --
> View this message in context: 
> http://www.nabble.com/creating-custom-cuboids-tp20303222p20303222.html
> Sent from the playerstage-gazebo mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Playerstage-gazebo mailing list
> Playerstage-gazebo@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Playerstage-gazebo mailing list
Playerstage-gazebo@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo

Reply via email to