concepts.simulator.pybullet.components.robot_base.BulletRobotBase#
- class BulletRobotBase[source]#
Bases:
BulletComponent
Methods
do
(action_name, *args, **kwargs)Execute an action primitive.
Get the pybullet body ID of the robot.
Get the pose of the robot body.
get_dof
()Get the total degrees of freedom of the robot.
Get the home joint configuration.
Get the pybullet joint IDs of the robot.
Get the joint limits.
get_qpos
()Get the current joint configuration.
get_qvel
()Get the current joint velocity.
register_action
(name, func[, interface])Register an action primitive.
Reset the home joint configuration.
set_ik_method
(ik_method)set_qpos
(qpos)Set the joint configuration.
set_qpos_with_holding
(qpos)Set the joint configuration with the gripper holding the object.
set_suppress_warnings
([value])Attributes
- __init__(client, body_name=None, gripper_objects=None, current_interface='pybullet', ik_method='pybullet')[source]#
- __new__(**kwargs)#
- get_body_id()[source]#
Get the pybullet body ID of the robot.
- Returns:
Body ID of the robot.
- Return type:
- get_body_pose()[source]#
Get the pose of the robot body.
- Returns:
3D position and 4D quaternion of the robot body.
- Return type:
Tuple[np.ndarray, np.ndarray]
- get_dof()[source]#
Get the total degrees of freedom of the robot.
- Returns:
Total degrees of freedom.
- Return type:
- get_joint_ids()[source]#
Get the pybullet joint IDs of the robot.
- Returns:
Joint IDs of the robot.
- Return type:
Sequence[int]
- get_joint_limits()[source]#
Get the joint limits.
- Returns:
Lower and upper joint limits.
- Return type:
Tuple[np.ndarray, np.ndarray]
- get_qpos()[source]#
Get the current joint configuration.
- Returns:
Current joint configuration.
- Return type:
np.ndarray
- get_qvel()[source]#
Get the current joint velocity.
- Returns:
Current joint velocity.
- Return type:
np.ndarray
- register_action(name, func, interface=None)[source]#
Register an action primitive.
- Parameters:
- Raises:
ValueError – If the action primitive is already registered.
- Return type:
None
- set_qpos(qpos)[source]#
Set the joint configuration.
- Parameters:
qpos (ndarray) – Joint configuration.
- Return type:
None
- set_qpos_with_holding(qpos)[source]#
Set the joint configuration with the gripper holding the object.
- Parameters:
qpos (ndarray) – Joint configuration.
- Return type:
None
- property p#
- property w#
- property world#