-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add xyz and rpy offset to published odometry pose (#1341)
* Added xyz and rpy offset to published pose Signed-off-by: Aditya <[email protected]>
- Loading branch information
1 parent
f5bb284
commit c24a4e9
Showing
4 changed files
with
314 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
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
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
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,232 @@ | ||
<?xml version="1.0" ?> | ||
<sdf version="1.6"> | ||
<world name="diff_drive"> | ||
|
||
<physics name="1ms" type="ode"> | ||
<max_step_size>0.001</max_step_size> | ||
<real_time_factor>0</real_time_factor> | ||
</physics> | ||
<plugin | ||
filename="ignition-gazebo-physics-system" | ||
name="ignition::gazebo::systems::Physics"> | ||
</plugin> | ||
|
||
<light type="directional" name="sun"> | ||
<cast_shadows>true</cast_shadows> | ||
<pose>0 0 10 0 0 0</pose> | ||
<diffuse>1 1 1 1</diffuse> | ||
<specular>0.5 0.5 0.5 1</specular> | ||
<attenuation> | ||
<range>1000</range> | ||
<constant>0.9</constant> | ||
<linear>0.01</linear> | ||
<quadratic>0.001</quadratic> | ||
</attenuation> | ||
<direction>-0.5 0.1 -0.9</direction> | ||
</light> | ||
|
||
<model name="ground_plane"> | ||
<static>true</static> | ||
<link name="link"> | ||
<collision name="collision"> | ||
<geometry> | ||
<plane> | ||
<normal>0 0 1</normal> | ||
</plane> | ||
</geometry> | ||
</collision> | ||
<visual name="visual"> | ||
<geometry> | ||
<plane> | ||
<normal>0 0 1</normal> | ||
<size>100 100</size> | ||
</plane> | ||
</geometry> | ||
<material> | ||
<ambient>0.8 0.8 0.8 1</ambient> | ||
<diffuse>0.8 0.8 0.8 1</diffuse> | ||
<specular>0.8 0.8 0.8 1</specular> | ||
</material> | ||
</visual> | ||
</link> | ||
</model> | ||
|
||
<model name='vehicle'> | ||
<pose>10 -10 0 0 0 0</pose> | ||
|
||
<link name='chassis'> | ||
<pose>-0.151427 -0 0.175 0 -0 0</pose> | ||
<inertial> | ||
<mass>1.14395</mass> | ||
<inertia> | ||
<ixx>0.126164</ixx> | ||
<ixy>0</ixy> | ||
<ixz>0</ixz> | ||
<iyy>0.416519</iyy> | ||
<iyz>0</iyz> | ||
<izz>0.481014</izz> | ||
</inertia> | ||
</inertial> | ||
<visual name='visual'> | ||
<geometry> | ||
<box> | ||
<size>2.01142 1 0.568726</size> | ||
</box> | ||
</geometry> | ||
<material> | ||
<ambient>0.5 0.5 1.0 1</ambient> | ||
<diffuse>0.5 0.5 1.0 1</diffuse> | ||
<specular>0.0 0.0 1.0 1</specular> | ||
</material> | ||
</visual> | ||
<collision name='collision'> | ||
<geometry> | ||
<box> | ||
<size>2.01142 1 0.568726</size> | ||
</box> | ||
</geometry> | ||
</collision> | ||
</link> | ||
|
||
<link name='left_wheel'> | ||
<pose>0.554283 0.625029 -0.025 -1.5707 0 0</pose> | ||
<inertial> | ||
<mass>2</mass> | ||
<inertia> | ||
<ixx>0.145833</ixx> | ||
<ixy>0</ixy> | ||
<ixz>0</ixz> | ||
<iyy>0.145833</iyy> | ||
<iyz>0</iyz> | ||
<izz>0.125</izz> | ||
</inertia> | ||
</inertial> | ||
<visual name='visual'> | ||
<geometry> | ||
<sphere> | ||
<radius>0.3</radius> | ||
</sphere> | ||
</geometry> | ||
<material> | ||
<ambient>0.2 0.2 0.2 1</ambient> | ||
<diffuse>0.2 0.2 0.2 1</diffuse> | ||
<specular>0.2 0.2 0.2 1</specular> | ||
</material> | ||
</visual> | ||
<collision name='collision'> | ||
<geometry> | ||
<sphere> | ||
<radius>0.3</radius> | ||
</sphere> | ||
</geometry> | ||
</collision> | ||
</link> | ||
|
||
<link name='right_wheel'> | ||
<pose>0.554282 -0.625029 -0.025 -1.5707 0 0</pose> | ||
<inertial> | ||
<mass>2</mass> | ||
<inertia> | ||
<ixx>0.145833</ixx> | ||
<ixy>0</ixy> | ||
<ixz>0</ixz> | ||
<iyy>0.145833</iyy> | ||
<iyz>0</iyz> | ||
<izz>0.125</izz> | ||
</inertia> | ||
</inertial> | ||
<visual name='visual'> | ||
<geometry> | ||
<sphere> | ||
<radius>0.3</radius> | ||
</sphere> | ||
</geometry> | ||
<material> | ||
<ambient>0.2 0.2 0.2 1</ambient> | ||
<diffuse>0.2 0.2 0.2 1</diffuse> | ||
<specular>0.2 0.2 0.2 1</specular> | ||
</material> | ||
</visual> | ||
<collision name='collision'> | ||
<geometry> | ||
<sphere> | ||
<radius>0.3</radius> | ||
</sphere> | ||
</geometry> | ||
</collision> | ||
</link> | ||
|
||
<link name='caster'> | ||
<pose>-0.957138 -0 -0.125 0 -0 0</pose> | ||
<inertial> | ||
<mass>1</mass> | ||
<inertia> | ||
<ixx>0.1</ixx> | ||
<ixy>0</ixy> | ||
<ixz>0</ixz> | ||
<iyy>0.1</iyy> | ||
<iyz>0</iyz> | ||
<izz>0.1</izz> | ||
</inertia> | ||
</inertial> | ||
<visual name='visual'> | ||
<geometry> | ||
<sphere> | ||
<radius>0.2</radius> | ||
</sphere> | ||
</geometry> | ||
<material> | ||
<ambient>0.2 0.2 0.2 1</ambient> | ||
<diffuse>0.2 0.2 0.2 1</diffuse> | ||
<specular>0.2 0.2 0.2 1</specular> | ||
</material> | ||
</visual> | ||
<collision name='collision'> | ||
<geometry> | ||
<sphere> | ||
<radius>0.2</radius> | ||
</sphere> | ||
</geometry> | ||
</collision> | ||
</link> | ||
|
||
<joint name='left_wheel_joint' type='revolute'> | ||
<parent>chassis</parent> | ||
<child>left_wheel</child> | ||
<axis> | ||
<xyz>0 0 1</xyz> | ||
<limit> | ||
<lower>-1.79769e+308</lower> | ||
<upper>1.79769e+308</upper> | ||
</limit> | ||
</axis> | ||
</joint> | ||
|
||
<joint name='right_wheel_joint' type='revolute'> | ||
<parent>chassis</parent> | ||
<child>right_wheel</child> | ||
<axis> | ||
<xyz>0 0 1</xyz> | ||
<limit> | ||
<lower>-1.79769e+308</lower> | ||
<upper>1.79769e+308</upper> | ||
</limit> | ||
</axis> | ||
</joint> | ||
|
||
<joint name='caster_wheel' type='ball'> | ||
<parent>chassis</parent> | ||
<child>caster</child> | ||
</joint> | ||
|
||
<plugin | ||
filename="ignition-gazebo-odometry-publisher-system" | ||
name="ignition::gazebo::systems::OdometryPublisher"> | ||
<xyz_offset>1 -1 0</xyz_offset> | ||
<rpy_offset>1.5708 0 0</rpy_offset> | ||
</plugin> | ||
</model> | ||
|
||
</world> | ||
</sdf> | ||
|