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

Fix crash in the follow_actor example #958

Merged
merged 9 commits into from
Aug 12, 2021
Prev Previous commit
Next Next commit
add test
Signed-off-by: Ian Chen <[email protected]>
iche033 committed Aug 6, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit a6c4e75f5dc237f8d065b211189e8113a0b6f801
39 changes: 39 additions & 0 deletions test/worlds/follow_actor.sdf
Original file line number Diff line number Diff line change
@@ -1,6 +1,45 @@
<?xml version="1.0" ?>
<sdf version="1.6">
<world name="actors">

<!-- add sensors system so that the rendering code is also tested -->
<plugin
filename="ignition-gazebo-sensors-system"
name="ignition::gazebo::systems::Sensors">
<render_engine>ogre2</render_engine>
</plugin>
<model name="camera">
<static>true</static>
<pose>0 0 0 0 0 0</pose>
<link name="link">
<visual name="visual">
<geometry>
<box>
<size>0.1 0.1 0.1</size>
</box>
</geometry>
</visual>
<sensor name="camera" type="camera">
<pose>1 0 1.3 0 0 0</pose>
<camera>
<horizontal_fov>1.047</horizontal_fov>
<image>
<width>320</width>
<height>240</height>
</image>
<clip>
<near>0.1</near>
<far>100</far>
</clip>
</camera>
<always_on>1</always_on>
<update_rate>30</update_rate>
<visualize>true</visualize>
<topic>camera</topic>
</sensor>
</link>
</model>

<model name="box">
<static>true</static>
<pose>1 -2 0.5 0 0 0</pose>