Skip to content

Commit

Permalink
テスト修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuwamai committed Nov 17, 2023
1 parent f5c2602 commit 616c51d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions test/test_robot_description_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def test_use_head_camera():
rdl.use_head_camera = 'true'
rdl.gz_control_config_package = 'sciurus17_description'
rdl.gz_control_config_file_path = 'config/dummy_controllers.yaml'
assert 'relative_to="head_camera_link"' in exec_load(rdl)
assert 'reference="head_camera_color_frame"' in exec_load(rdl)


def test_use_chest_camera():
Expand All @@ -78,4 +78,4 @@ def test_use_chest_camera():
rdl.use_chest_camera = 'true'
rdl.gz_control_config_package = 'sciurus17_description'
rdl.gz_control_config_file_path = 'config/dummy_controllers.yaml'
assert 'relative_to="chest_camera_link"' in exec_load(rdl)
assert 'reference="chest_camera_link"' in exec_load(rdl)
16 changes: 8 additions & 8 deletions urdf/sciurus17_gazebo.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
</plugin>
</gazebo>

<gazebo reference="${NAME_HEAD_CAMERA_PREFIX}_color_frame">
<xacro:if value="${USE_HEAD_CAMERA}">
<xacro:if value="${USE_HEAD_CAMERA}">
<gazebo reference="${NAME_HEAD_CAMERA_PREFIX}_color_frame">
<sensor name="sim_realsense_d415" type="rgbd_camera">
<update_rate>10</update_rate>
<always_on>true</always_on>
Expand Down Expand Up @@ -105,11 +105,11 @@
</lens>
</camera>
</sensor>
</xacro:if>
</gazebo>
</gazebo>
</xacro:if>

<gazebo reference="${NAME_LINK_CHEST_CAMERA}">
<xacro:if value="${USE_CHEST_CAMERA}">
<xacro:if value="${USE_CHEST_CAMERA}">
<gazebo reference="${NAME_LINK_CHEST_CAMERA}">
<sensor name="${NAME_CHEST_CAMERA_PREFIX}" type="camera">
<pose relative_to="${NAME_LINK_CHEST_CAMERA}">0 0 0 ${radians(90)} ${radians(-90)} 0</pose>
<update_rate>10</update_rate>
Expand Down Expand Up @@ -149,8 +149,8 @@
</lens>
</camera>
</sensor>
</xacro:if>
</gazebo>
</gazebo>
</xacro:if>

<gazebo reference="${NAME_LINK_ARM_R_1}">
<xacro:material_gazebo_white/>
Expand Down

0 comments on commit 616c51d

Please sign in to comment.