-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pendulum for ApplyForceTorque and MouseDrag demo (#19)
--------- Signed-off-by: Henrique-BO <henrique.barrosoliveira@usp.br>
- Loading branch information
1 parent
f9fa314
commit 07057b6
Showing
3 changed files
with
157 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0"?> | ||
<model> | ||
<name>Pendulum</name> | ||
<version>1.0</version> | ||
<sdf version="1.11">model.sdf</sdf> | ||
|
||
<author> | ||
<name>Henrique Barros Oliveira</name> | ||
<email>henrique.barrosoliveira@usp.br</email> | ||
</author> | ||
|
||
<description> | ||
Pendulum for demonstrating ApplyForceTorque and MouseDrag plugins | ||
</description> | ||
|
||
</model> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<sdf version="1.11"> | ||
<model name="pendulum"> | ||
<link name="base"> | ||
<inertial auto="true"/> | ||
<visual name="vis_plate_on_ground"> | ||
<pose>0 0 0.01 0 0 0</pose> | ||
<geometry> | ||
<cylinder> | ||
<radius>0.1</radius> | ||
<length>0.02</length> | ||
</cylinder> | ||
</geometry> | ||
<material> | ||
<diffuse>0.2 0.1 0.1</diffuse> | ||
<specular>0.2 0.2 0.2</specular> | ||
</material> | ||
</visual> | ||
<visual name="vis_pole"> | ||
<pose>-0.05 0 0.2 0 0 0</pose> | ||
<geometry> | ||
<box> | ||
<size>0.05 0.05 0.4</size> | ||
</box> | ||
</geometry> | ||
<material> | ||
<diffuse>0.2 0.1 0.1</diffuse> | ||
<specular>0.2 0.2 0.2</specular> | ||
</material> | ||
</visual> | ||
<collision name="col_plate_on_ground"> | ||
<density>1</density> | ||
<pose>0 0 0.01 0 0 0</pose> | ||
<geometry> | ||
<cylinder> | ||
<radius>0.1</radius> | ||
<length>0.02</length> | ||
</cylinder> | ||
</geometry> | ||
</collision> | ||
<collision name="col_pole"> | ||
<density>1000</density> | ||
<pose>-0.05 0 0.2 0 0 0</pose> | ||
<geometry> | ||
<box> | ||
<size>0.05 0.05 0.4</size> | ||
</box> | ||
</geometry> | ||
</collision> | ||
</link> | ||
|
||
<!-- upper link, length 1, IC -90 degrees --> | ||
<link name="upper_link"> | ||
<pose>0 0 0.35 3.1415 0 0</pose> | ||
<self_collide>0</self_collide> | ||
<inertial auto="true"/> | ||
<visual name="vis_upper_joint"> | ||
<pose>0.04 0 0 0 1.5708 0</pose> | ||
<geometry> | ||
<cylinder> | ||
<radius>0.02</radius> | ||
<length>0.2</length> | ||
</cylinder> | ||
</geometry> | ||
<material> | ||
<diffuse>0.0 1.0 1.0</diffuse> | ||
<specular>1.0 1.0 1.0</specular> | ||
</material> | ||
</visual> | ||
<visual name="vis_cylinder"> | ||
<pose>0.1 0 0.15 0 0 0</pose> | ||
<geometry> | ||
<cylinder> | ||
<radius>0.02</radius> | ||
<length>0.3</length> | ||
</cylinder> | ||
</geometry> | ||
<material> | ||
<diffuse>0.0 1.0 1.0</diffuse> | ||
<specular>1.0 1.0 1.0</specular> | ||
</material> | ||
</visual> | ||
<collision name="col_upper_joint"> | ||
<density>1000</density> | ||
<pose>0.04 0 0 0 1.5708 0</pose> | ||
<geometry> | ||
<cylinder> | ||
<radius>0.02</radius> | ||
<length>0.2</length> | ||
</cylinder> | ||
</geometry> | ||
</collision> | ||
<collision name="col_cylinder"> | ||
<density>1000</density> | ||
<pose>0.1 0 0.15 0 0 0</pose> | ||
<geometry> | ||
<cylinder> | ||
<radius>0.02</radius> | ||
<length>0.3</length> | ||
</cylinder> | ||
</geometry> | ||
</collision> | ||
</link> | ||
|
||
<!-- pin joint for upper link, at origin of upper link --> | ||
<joint name="upper_joint" type="revolute"> | ||
<parent>base</parent> | ||
<child>upper_link</child> | ||
<axis> | ||
<xyz>1.0 0 0</xyz> | ||
</axis> | ||
</joint> | ||
|
||
<joint name="fix_to_world" type="fixed"> | ||
<parent>world</parent> | ||
<child>base</child> | ||
</joint> | ||
</model> | ||
</sdf> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters