Skip to content

Commit

Permalink
Add example
Browse files Browse the repository at this point in the history
Signed-off-by: Louise Poubel <[email protected]>
  • Loading branch information
chapulina committed Nov 9, 2021
1 parent ef5a2d6 commit 879eda3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions examples/worlds/multicopter_velocity_control.sdf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ You can use the velocity controller and command linear velocity and yaw angular
ign topic -t "/X3/gazebo/command/twist" -m ignition.msgs.Twist -p " "
Listen to odometry:
ign topic -e -t "/model/x3/odometry"
Send commands to the hexacopter to go straight up:
Expand All @@ -20,6 +24,11 @@ You can use the velocity controller and command linear velocity and yaw angular
To hover
ign topic -t "/X4/gazebo/command/twist" -m ignition.msgs.Twist -p " "
Listen to odometry:
ign topic -e -t "/model/X4/odometry"
-->

<sdf version="1.6">
Expand Down Expand Up @@ -210,6 +219,11 @@ You can use the velocity controller and command linear velocity and yaw angular
</rotor>
</rotorConfiguration>
</plugin>
<plugin
filename="ignition-gazebo-odometry-publisher-system"
name="ignition::gazebo::systems::OdometryPublisher">
<dimensions>3</dimensions>
</plugin>
</include>
<include>
<pose>0 3 1 0 0 0</pose>
Expand Down Expand Up @@ -400,6 +414,11 @@ You can use the velocity controller and command linear velocity and yaw angular
</rotor>
</rotorConfiguration>
</plugin>
<plugin
filename="ignition-gazebo-odometry-publisher-system"
name="ignition::gazebo::systems::OdometryPublisher">
<dimensions>3</dimensions>
</plugin>
</include>
</world>
</sdf>
2 changes: 1 addition & 1 deletion test/integration/odometry_publisher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ TEST_P(OdometryPublisherTest, Movement3d)
{
TestMovement3d(
ignition::common::joinPaths(PROJECT_SOURCE_PATH,
"/test/worlds/odometry_publisher_3d.sdf"),
"test", "worlds", "odometry_publisher_3d.sdf"),
"/model/X3/odometry");
}

Expand Down

0 comments on commit 879eda3

Please sign in to comment.