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

Generating the custom world #12

Open
aaravrav142 opened this issue Jul 5, 2023 · 4 comments
Open

Generating the custom world #12

aaravrav142 opened this issue Jul 5, 2023 · 4 comments

Comments

@aaravrav142
Copy link

aaravrav142 commented Jul 5, 2023

Hi
How do I generate my own simulation world? I have an iPad Pro Lidar. Is it okay to use the PLY file from the rtabmap iPad app to generate the map and then export it in the gazebo for use with a ground robot simulation e.g a turtlebot ? What steps do I need to follow? Can you please explain? Thanks

@matlabbe
Copy link
Owner

You will have to convert the OBJ or PLY into a DAE file (collada). You can use MeshLab to do the conversion. You then need to create an SDF file including the DAE file for the scan in a models folder, then create a gazebo world file to include that model. To use paths in SDF file relative to package, edit package.xml and ad this:

<!-- The export tag contains other, unspecified, tags -->
<export>
<!-- Other tools can request additional information be placed here -->
<gazebo_ros
gazebo_plugin_path="${prefix}/lib"
gazebo_model_path="${prefix}/models" />
</export>

For ground robot, to make sure the ground is flat, a trick is to add an invisible ground plane at z=0 and lower the model for about 1-2 cm.

@tulingcheng86
Copy link

You will have to convert the OBJ or PLY into a DAE file (collada). You can use MeshLab to do the conversion. You then need to create an SDF file including the DAE file for the scan in a models folder, then create a gazebo world file to include that model. To use paths in SDF file relative to package, edit package.xml and ad this:

<!-- The export tag contains other, unspecified, tags -->
<export>
<!-- Other tools can request additional information be placed here -->
<gazebo_ros
gazebo_plugin_path="${prefix}/lib"
gazebo_model_path="${prefix}/models" />
</export>

For ground robot, to make sure the ground is flat, a trick is to add an invisible ground plane at z=0 and lower the model for about 1-2 cm.

Hello, is there any way to convert ply files to OBJ or DAE files? I tried meshlab, but not using it very well results in conversions. Please it would be better if there is a tutorial or software for conversion, thank you

@matlabbe
Copy link
Owner

Just select DAE when exporting like in this video: https://youtu.be/37E1iHAJp24?si=1ODDCLea7IoAWQp1

@tulingcheng86
Copy link

Just select DAE when exporting like in this video: https://youtu.be/37E1iHAJp24?si=1ODDCLea7IoAWQp1

THANKS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants