PaulDanielML / MuJoCo_RL_UR5

A MuJoCo/Gym environment for robot control using Reinforcement Learning. The task of agents in this environment is pixel-wise prediction of grasp success chances.
MIT License
413 stars 54 forks source link

How to convert the end-effector position to image pixel co-ordinates ? #6

Open karthikarvind1295 opened 3 years ago

karthikarvind1295 commented 3 years ago

Hey Paul, I am working on a project where I need to convert the end-effector position (normalized from -1 to 1) from Mujoco environment to coordinate in the image rendered in Mujoco. I am not sure how to do it. Could you help me ?

PaulDanielML commented 2 years ago

Hey, sorry for the late reply. Did you have a look at https://github.com/PaulDanielML/MuJoCo_RL_UR5/blob/master/gym_grasper/controller/MujocoController.py#L761-L781 yet? Not sure if this is what you are looking for, let me know