Skip to content

Commit

Permalink
Issue-35 Add Ellipse STL and URDF files
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Toledano committed Oct 22, 2024
1 parent 7118367 commit 4e7034b
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,14 @@ install(DIRECTORY config/
DESTINATION share/${PROJECT_NAME}/config
PATTERN ".git" EXCLUDE)

# Install URDF and meshes
install(DIRECTORY urdf/
DESTINATION share/${PROJECT_NAME}/urdf
)

install(DIRECTORY meshes/
DESTINATION share/${PROJECT_NAME}/meshes
)

###################################
## ament specific configuration ##
Expand Down
Binary file added meshes/ellipse.stl
Binary file not shown.
4 changes: 4 additions & 0 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
<depend>tf2_geometry_msgs</depend>
<depend>nmea_msgs</depend>

<build_depend>urdf</build_depend>

<exec_depend>urdf</exec_depend>
<exec_depend>xacro</exec_depend>
<exec_depend>rosidl_default_runtime</exec_depend>

<member_of_group>rosidl_interface_packages</member_of_group>
Expand Down
10 changes: 10 additions & 0 deletions urdf/ellipse.urdf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<robot name="ellipse">
<link name="odom">
<visual>
<origin xyz="0 0 0" rpy="1.5708 0 -1.5708"/> <!-- Add rotation to align the 3D model with odometry -->
<geometry>
<mesh filename="package://sbg_driver/meshes/ellipse.stl" scale="0.1 0.1 0.1"/>
</geometry>
</visual>
</link>
</robot>

0 comments on commit 4e7034b

Please sign in to comment.