Gazebo | Ignition | Community
Ask Your Question

gazebo_creating a glass model [closed]

asked 2022-05-06 02:04:45 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hello there! I'm working on building a Simulation environment in gazebo. I want to create a railing with glass and test the robot can pass or not. However i checked the gazebo's model library and didn't find any glass product. Is there other ways that i can build a piece of glass?

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by zjc19990331
close date 2022-05-06 21:29:03.926399

1 Answer

Sort by » oldest newest most voted

answered 2022-05-06 21:27:03 -0500

zjc19990331 gravatar image

updated 2022-05-06 21:27:58 -0500

Solved model.sdf code
<sdf version="1.6"> <model name="glass1"> <static>true</static> <link name="link"> <collision name="visual"> <laser_retro>0.5</laser_retro> <geometry><box><size>1.6 0.05 2</size></box></geometry> </collision> <visual name="visual1"> <transparency>0.8</transparency> <geometry><box><size>1.6 0.05 2</size></box></geometry> <material> <script><name>Gazebo/WhiteTransparent</name></script> </material> </visual> </link> </model> </sdf>

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2022-05-06 02:04:45 -0500

Seen: 45 times

Last updated: May 06 '22