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

Update documentation on the URDF generation from Creo CAD assemblies #229

Merged
merged 5 commits into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,17 @@ yarprobotinterface --config conf/launch_wholebodydynamics_ecub.xml
```

## URDF generation
This repository hosts the configuration files for generating ergoCub urdf via [`creo2urdf`](https://github.com/icub-tech-iit/creo2urdf).
You can find there the relative documentation on how write those configuration files.

This repository hosts the configuration files for generating ergoCub urdf. To generate the URDF, you need to have access to the `cad-mechanics` repo (that is currently private, if you need access ask it to the ergocub-software mantainer) and install the following repos and software:
* You need to install the version of Creo required by [`cad-mechanics`](https://github.com/icub-tech-iit/cad-mechanics/).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've noticed that https://github.com/icub-tech-iit/cad-mechanics/ is private, is it wanted? I've also noticed that I don't have the access 😃

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In theory that is documented, see the sentence "(that is currently private, if you need access ask it to the ergocub-software mantainer)".

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it could make sense to consider moving those models to cad-mechanics-public, but I did not want to block the docs improvement on that discussion.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it could make sense to consider moving those models to cad-mechanics-public

cc @fiorisi @maggia80

* You need to install the repos that contain the CAD models, i.e. cad-libraries (see https://github.com/icub-tech-iit/cad-libraries/wiki/Configure-PTC-Creo-with-cad-libraries) and cad-mechanics https://github.com/icub-tech-iit/cad-mechanics/.
* You need to install creo2urdf following the README in https://github.com/icub-tech-iit/creo2urdf, either from source or using the binary available for each release.

The CAD files used to generate the URDF models have been prepare according to the procedure described in https://github.com/icub-tech-iit/cad-libraries/wiki/Prepare-PTC-Creo-Mechanism-for-URDF .

You can find there the relative documentation on how write those configuration files, and more details in the README of the following folders:
* [`urdf/creo2urdf/data/ergocub1_0`](./urdf/creo2urdf/data/ergocub1_0)
* [`urdf/creo2urdf/data/ergocub1_1`](./urdf/creo2urdf/data/ergocub1_1)

### Maintainers
This repository is maintained by:
Expand Down
11 changes: 8 additions & 3 deletions urdf/creo2urdf/data/ergocub1_0/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
This directory contains file generated from `https://github.com/icub-tech-iit/cad-mechanics/blob/master/projects/simulation_model/ergocub_1-0/sim_ergocub_1-0.asm.1`
using the https://github.com/icub-tech-iit/cad-mechanics-public/wiki/Creo-mechanism-to-URDF workflow .
In particular the `SIM_ERGOCUB_1-0.xml` is directly the output obtained by the SimMechanics Link plugin.

This is the mapping between the CAD files, the files contained in this folder and the files contained in `ergocub-software/urdf/ergoCub/robots`:

| CAD model in `cad-mechanics` | yaml file | csv file | YARP_ROBOT_NAME |
|:----------:|:---------:|:----------:|:--------------:|
| `cad-mechanics/projects/simulation_model/ergocub_1-0/sim_ergocub_1-0.asm.1` | `ergocub-software/urdf/creo2urdf/data/ergocub1_0/ERGOCUB_all_options.yaml` | `ergocub-software/urdf/creo2urdf/data/ergocub1_0/ERGOCUB_all_options/ERGOCUB_all_options.csv` | `ergoCubSN000` |
| `cad-mechanics/projects/simulation_model/ergocub_1-0/sim_ergocub_1-0.asm.1` | `ergocub-software/urdf/creo2urdf/data/ergocub1_0/ERGOCUB_all_options/ERGOCUB_all_options_gazebo.yaml` | `ergocub-software/urdf/creo2urdf/data/ergocub1_0/ERGOCUB_all_options/ERGOCUB_all_options_gazebo.csv` | `ergoCubGazeboV1` |
| `cad-mechanics/projects/simulation_model/ergocub_1-0/sim_ergocub_1-0.asm.1` | `ergocub-software/urdf/creo2urdf/data/ergocub1_0/ERGOCUB_all_options/ERGOCUB_all_options_minContacts.yaml` | `ergocub-software/urdf/creo2urdf/data/ergocub1_0/ERGOCUB_all_options/ERGOCUB_all_options_minContacts.csv` | `ergoCubGazeboV1_minContacts` |
10 changes: 7 additions & 3 deletions urdf/creo2urdf/data/ergocub1_1/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
This directory contains file generated from `https://github.com/icub-tech-iit/cad-mechanics/blob/master/projects/simulation_model/ergocub_1-0/sim_ergocub_1-0.asm.1`
using the https://github.com/icub-tech-iit/cad-mechanics-public/wiki/Creo-mechanism-to-URDF workflow .
In particular the `SIM_ERGOCUB_1-0.xml` is directly the output obtained by the SimMechanics Link plugin.
This is the mapping between the CAD files, the files contained in this folder and the files contained in `ergocub-software/urdf/ergoCub/robots`:

| CAD model in `cad-mechanics` | yaml file | csv file | YARP_ROBOT_NAME |
|:----------:|:---------:|:----------:|:--------------:|
| `cad-mechanics/projects/simulation_model/ergocub_1-1/sim_ergocub_1-1.asm.1` | `ergocub-software/urdf/creo2urdf/data/ergocub1_1/ERGOCUB_all_options.yaml` | `ergocub-software/urdf/creo2urdf/data/ergocub1_1/ERGOCUB_all_options/ERGOCUB_all_options.csv` | `ergoCubSN001` |
| `cad-mechanics/projects/simulation_model/ergocub_1-1/sim_ergocub_1-1.asm.1` | `ergocub-software/urdf/creo2urdf/data/ergocub1_1/ERGOCUB_all_options/ERGOCUB_all_options_gazebo.yaml` | `ergocub-software/urdf/creo2urdf/data/ergocub1_1/ERGOCUB_all_options/ERGOCUB_all_options_gazebo.csv` | `ergoCubGazeboV1_1` |
| `cad-mechanics/projects/simulation_model/ergocub_1-1/sim_ergocub_1-1.asm.1` | `ergocub-software/urdf/creo2urdf/data/ergocub1_1/ERGOCUB_all_options/ERGOCUB_all_options_minContacts.yaml` | `ergocub-software/urdf/creo2urdf/data/ergocub1_1/ERGOCUB_all_options/ERGOCUB_all_options_minContacts.csv` | `ergoCubGazeboV1_1_minContacts` |
Loading