maxspahn / gym_envs_urdf

URDF environments for gym
https://maxspahn.github.io/gym_envs_urdf/
GNU General Public License v3.0
43 stars 14 forks source link

How do I change the color of a object rendered in the environment? #246

Closed bakuljangley closed 5 months ago

bakuljangley commented 7 months ago

env.add_obstacle(obstacle) -- how do i add colors to spawned objects.

maxspahn commented 7 months ago

You can specify the color of an obstacle in the configuration dictionary.

https://github.com/maxspahn/gym_envs_urdf/blob/d00397a7160e9427bee96bb762a0faaf69b9b726/urdfenvs/scene_examples/obstacles.py#L167