Randomize Static Object location in Gazebo

asked 2020-08-01 11:34:43 -0500

kolohe113 gravatar image

updated 2020-08-01 13:17:03 -0500

Hi! I am currently working on a deep reinforcement learning task in Gazebo and I want to randomize the location of obstacles for every episode. For non-static object, I can achieve this by publishing to the set_model_state topic. However, when it comes to static objects, set_model_state does something strange; When I tried set_model_state with static model, the robot will see the obstacle generated, but when I look over on gazebo, it does not visualize the obstacle.

Is there a good way to randomize a static objects?

Edit: This is what I meant for gazebo not visualizing the obstacles. On the left you can see the camera on the drone is picking up the buildings. But when you look on the gazebo window on the right, it shows nothing. image description

edit retag flag offensive close merge delete