Close

URDF Mesh Integration and Refinement

A project log for ChessMate - ROS2 Chess Robot

An AI chess master with expressive eyes, custom electronics, and a precision arm that will checkmate you with style!

vipin-mVipin M 07/03/2025 at 20:300 Comments

Successfully integrated STL meshes from Fusion 360 into the SCARA robot URDF, replacing geometric primitives with realistic visual representations. Resolved coordinate system alignment issues and achieved proper mesh positioning for all robot links.

Key Accomplishments

1. STL Mesh Infrastructure Setup

2. Coordinate System Resolution

Problem Identified: F360 STL exports had coordinate system misalignment with ROS conventions

Solutions Applied:

<!-- Base Link Correction -->
<origin xyz="0 0 -0.1" rpy="1.5708 0 0"/>
<!-- 90° X-rotation to align Z-axis through face, Z-offset for centering -->

<!-- Link 1 Correction -->  <origin xyz="0.05 0 0" rpy="1.57 0 -1.57"/>
<!-- Position and orientation adjustment for proper joint alignment -->

<!-- Link 2 Correction -->
<origin xyz="-0.05 -0.022 0" rpy="0 0 -3.14159"/>
<!-- 180° rotation and position offset for correct extension from Link 1 -->

3. World Frame Implementation

4. Interactive Marker Development (Attempted)

Technical Details

Mesh File Structure

meshes/
├── visual/
│   ├── base_link_visual.stl      (612KB)
│   ├── link1_visual.stl          (196KB)  │   ├── link2_visual.stl          (353KB)
│   └── end_effector_visual.stl   (612KB)
└── collision/    ├── base_link_collision.stl    ├── link1_collision.stl    ├── link2_collision.stl    └── end_effector_collision.stl

URDF Configuration Parameters

<xacro:property name="use_meshes" value="true" />
<xacro:property name="mesh_path" value="package://chessmate_description/meshes" />

Scaling Factor

Problem-Solving Approach

1. Systematic Debugging

2. Coordinate System Analysis

3. Iterative Refinement

Current Status

✅ Working Components

🔧 Areas for Enhancement

Lessons Learned

1. F360 Export Best Practices

2. URDF Mesh Integration

3. Debugging Strategies

Next Steps

  1. Chess board integration: Create F360-based chess board URDF
  2. Workspace analysis: Validate reachability with accurate geometry
  3. Motion planning setup: MoveIt2 configuration with refined URDF
  4. Interactive marker resolution: Debug display issues for future use

Discussions