Git Product home page Git Product logo

Comments (7)

xuanlinli17 avatar xuanlinli17 commented on August 23, 2024

Please see the get_obs function in the parent env (https://github.com/haosulab/ManiSkill2/blob/fc08823bf96791946591a508f336d724fa7cad26/mani_skill2/envs/sapien_env.py#L255) and in the child env for more details. The state contains 2 parts: get_obs_agent() (agent proprioceptive states) and get_obs_extra() (other environment-specific states). Different environments have different state dimensions. The state observation mode has more state dimensions than the visual (rgbd/pointcloud) observation modes, since the former contains ground truth object pose information in get_obs_extra(), while the latter does not.

If you are not using a wrapper (e.g., ManiSkill2-Learn), then if you are under visual observation mode (rgbd & pointcloud) and print out env.get_obs(), the dictionary keys will tell the meanings.

If you are using the state observation mode, then in particular, for PickCube-v0, the state dimension is 51, which contains (1) from get_obs_agent() (see https://github.com/haosulab/ManiSkill2/blob/fc08823bf96791946591a508f336d724fa7cad26/mani_skill2/agents/base_agent.py#L170), agent qpos (state[:9]) & qvel (state[9:18]) & agent base pose (state[18:25]) & controller state (empty) (these dimensions are robot-specific); (2) from get_obs_extra(), agent tcp pose (state[25:32]), goal pos (state[32:35]), tcp to goal pos (state[35:38]), cube pose (state[38:45]), tcp to obj pos (state[45:48]), obj to goal pos (state[48:51])

If you are using ManiSkill2-Learn wrapper and using any of the visual observation modes (which I guess it's your case), see https://github.com/haosulab/ManiSkill2-Learn/blob/83dfe26c73b6ce6b0388a0fa07493f340e36dd44/maniskill2_learn/env/wrappers.py#L235 for the environment wrapper. For the 38-dimensional "state" output from the wrapper, it contains agent qpos (state[:9]) & qvel (state[9:18]) & agent base_pose (state[18:25]) & agent tcp_pose (state[25:32]) & goal pos (state[32:35]) & tcp_to_goal_pos (state[35:38])

from maniskill.

lijinming2018 avatar lijinming2018 commented on August 23, 2024

Why does "agent qpos" have 9 dimensions, and what does each dimension represent?

from maniskill.

xuanlinli17 avatar xuanlinli17 commented on August 23, 2024

The first 7 dimensions are panda joint positions; the last 2 dimensions are panda gripper positions

from maniskill.

lijinming2018 avatar lijinming2018 commented on August 23, 2024

what is the mean of the base_pose and tcp_bose

from maniskill.

xuanlinli17 avatar xuanlinli17 commented on August 23, 2024

Pose = concat(xyz position, rotation), rotation is represented in the format of quaternion in our state space
base_pose = pose of robot base
tcp_pose = pose of robot tool center point (mid point between two gripper fingers)

from maniskill.

MDMLab223 avatar MDMLab223 commented on August 23, 2024

May I know the respective value ranges for these 38 dimensions?

from maniskill.

xuanlinli17 avatar xuanlinli17 commented on August 23, 2024

States corresponding to robot qpos are bounded by joint angle ranges. Other dims are unbounded.

from maniskill.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.