Skip to content

IRVLUTD/irvl-fetch-3d-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Overview

  • This repository is dedicated to the 3D modeling of the Fetch robot for use in the IRVL lab.
  • For sensor-related configurations, ROS packages, and scripts, refer to the fetch_ros_IRVL repository which is included as a submodule here to allow seamless integration with the 3D models.

teaser

⚙️ Setup

Follow these simple steps to set up the repository and integrate the 3D models with your environment.

Step 1️⃣: Clone the Repository

git clone --recurse-submodules https://github.com/IRVLUTD/irvl-fetch-3d-model
cd irvl-fetch-3d-model

Step 2️⃣: Add 3D Models to the Appropriate Folders

Make sure the required files are placed in the correct directories:

Step-3️⃣: 🌟 Reference for Visualizing URDF with TF Frames

To visualize the updated URDF with TF frames, Problem 2 from the following reference has been referred:

# rm if any exists
rm -rf build/ devel/;

# 
catkin_make; source  devel/setup.bash;

# launch the display_fetch.launch
roslaunch urdf_tutorial display_fetch.launch
run-fetch-3d-model-display-pipeline.mp4

🛠️ Model Modifications

✏️ Adjusting Model Origin (ATI NetB)

The ATI NetB model’s origin has been shifted to its 2D centroid (ignoring height) for better alignment. Before and After:

To shift the origin of the ATI NetB model from one end to the 2D centroid (ignoring height), use the following Python script with trimesh:

import trimesh

# Load the STL file
mesh = trimesh.load("path_to_your_input_file.stl")

# Get the centroid and create a writable copy
centroid = mesh.centroid.copy()

# Set the Z-coordinate of the centroid to 0
centroid[2] = 0.0

# Translate the mesh to align with the modified centroid
mesh.apply_translation(-centroid)

# Export the updated STL file
mesh.export("path_to_your_output_file.stl")

💻 Laptop with Mount

mount-with-laptop-model-in-blender-meshlab-origin-shift.mp4

📦 Model Sources

  • RAM Mount: The RAM mount model was obtained from GrabCAD.
  • Lenovo Legion Laptop:
  • 9105-NETB: This model was sourced from 3D Content Central.

🛠️ Tools and Software used for making this

  1. FreeCAD Installation:
    Install FreeCAD for handling 3D models with the command:

    sudo apt-get install freecad
  2. File Conversion Tools:

    • ImageToSTL:

      • Convert .stp files to .stl.
      • Convert .dae files (e.g., laptop models) to .stl.
      • ⚠️ Note: The tool may fail for some file types.
    • 3DEncoder:

      • Convert .SKP or .model files to .stl.
      • 🆓 Free users can only convert 3 files per day and upload files up to 20 MB. Paid users get increased quotas and file size limits.

📜 License

  • This project is MIT licensed.
  • But the 3D models used have their own license.
  • Before using this project, please read the respective license files.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages