Where to find IDs for different object such as robot, gripper, camera, sponge, etc. #105
-
|
Where can i find the get the ID of an object such as
what is to be provided as |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Hi @architjain19 check the output of print(env.attrs) Now you have information about all the objects in the scene. For each object, Now you have the data of this object. For instance, the object with id=2333 is the red cube. You can try changing the position of it, or move the end effector of the robot to that specific position. Check the example test_bathing.py to get an overall idea about how to use the camera, robot, gripper, and sponge. |
Beta Was this translation helpful? Give feedback.
-
|
Well i got this, thanks. |
Beta Was this translation helpful? Give feedback.
Hi @architjain19 check the output of print(env.attrs)
{98721: <pyrcareworld.attributes.camera_attr.CameraAttr object at 0x7fd4f5f945b0>, 4857: <pyrcareworld.attributes.sponge_score_attr.SpongeScoreAttr object at 0x7fd4f5f94670>, 2333: <pyrcareworld.attributes.base_attr.BaseAttr object at 0x7fd4f5f94760>, 91846: <pyrcareworld.attributes.sponge_attr.SpongeAttr object at 0x7fd4f5f947c0>, 654321: <pyrcareworld.attributes.camera_attr.CameraAttr object at 0x7fd4f5f94820>, 2215820: <pyrcareworld.attributes.controller_attr.ControllerAttr object at 0x7fd4f5f94880>, 221582: <pyrcareworld.attributes.controller_attr.ControllerAttr object at 0x7fd4f6146230>, 758666: <pyrcareworld.attributes.base_attr.…