Robot¶
BaseRobot¶
-
class
gibson2.core.physics.robot_bases.
BaseRobot
(model_file, base_name=None, scale=1, self_collision=False)¶ Base class for mujoco xml/ROS urdf based agents. Handles object loading
-
__init__
(model_file, base_name=None, scale=1, self_collision=False)¶ - Parameters
model_file – model filename
base_name – name of the base link
scale – scale, default to 1
self_collision – use self collision or not
-
load
()¶ Load the robot model into pybullet :return: body id in pybullet
-
parse_robot
(bodies)¶ Parse the robot to get properties including joint information and mass :param bodies: body ids in pybullet :return: parts, joints, ordered_joints, robot_body, robot_mass
-
BodyPart¶
Joint¶
LocomotorRobot¶
-
class
gibson2.core.physics.robot_locomotors.
LocomotorRobot
(filename, action_dim, base_name=None, scale=1.0, control='torque', is_discrete=True, torque_coef=1.0, velocity_coef=1.0, self_collision=False)¶ Built on top of BaseRobot
-
__init__
(filename, action_dim, base_name=None, scale=1.0, control='torque', is_discrete=True, torque_coef=1.0, velocity_coef=1.0, self_collision=False)¶ - Parameters
model_file – model filename
base_name – name of the base link
scale – scale, default to 1
self_collision – use self collision or not
-