Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Randomize Static Object location in Gazebo

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 doesn't really work. Is there a way to randomize a static objects?

Randomize Static Object location in Gazebo

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 doesn't really work. 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?

Randomize Static Object location in Gazebo

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