Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shapes.sdf example: bump to 1.12, add cone shape #2448

Merged
merged 1 commit into from
Jun 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 40 additions & 8 deletions examples/worlds/shapes.sdf
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<?xml version="1.0" ?>
<!--

Try moving a model:

gz service -s /world/shapes/set_pose --reqtype gz.msgs.Pose --reptype gz.msgs.Boolean --timeout 300 --req 'name: "box", position: {z: 5.0}'

-->
<sdf version="1.6">
<sdf version="1.12">
<!--
Try moving a model using the command in the following CDATA block::
-->
<![CDATA[
gz service -s /world/shapes/set_pose \
--reqtype gz.msgs.Pose --reptype gz.msgs.Boolean \
--timeout 300 --req 'name: "box", position: {z: 5.0}'
]]>
<world name="shapes">
<scene>
<ambient>1.0 1.0 1.0</ambient>
Expand Down Expand Up @@ -240,5 +241,36 @@ Try moving a model:
</visual>
</link>
</model>

<model name="cone">
<pose>0 4.5 0.5 0 0 0</pose>
<link name="cone_link">
<inertial auto="true">
<density>1</density>
</inertial>
<collision name="cone_collision">
<geometry>
<cone>
<radius>0.5</radius>
<length>1.0</length>
</cone>
</geometry>
</collision>

<visual name="cone_visual">
<geometry>
<cone>
<radius>0.5</radius>
<length>1.0</length>
</cone>
</geometry>
<material>
<ambient>1 0.47 0 1</ambient>
<diffuse>1 0.47 0 1</diffuse>
<specular>1 0.47 0 1</specular>
</material>
</visual>
</link>
</model>
</world>
</sdf>
Loading