Ark
|
Public Member Functions | |
None | __init__ (self, component_name=str, Dict[str, Any] component_config=None, Any client=None) |
Create a robot driver for PyBullet. | |
None | load_robot (self, base_position=None, base_orientation=None, q_init=None) |
Load the robot model into the simulator. | |
bool | check_torque_status (self) |
get infos ## | |
Dict[str, float] | pass_joint_positions (self, List[str] joints) |
Return the current joint positions. | |
Dict[str, float] | pass_joint_velocities (self, List[str] joints) |
Return the current joint velocities. | |
Dict[str, float] | pass_joint_efforts (self, List[str] joints) |
Return the current joint efforts. | |
None | pass_joint_group_control_cmd (self, str control_mode, Dict[str, float] cmd, **kwargs) |
control ## | |
None | sim_reset (self, List[float] base_pos, List[float] base_orn, List[float] q_init) |
misc. | |
Public Member Functions inherited from ark.system.driver.robot_driver.SimRobotDriver | |
None | __init__ (self, str component_name, Dict[str, Any] component_config=None, bool sim=True) |
Initialize the simulation driver. | |
None | shutdown_driver (self) |
Shut down the simulation driver. | |
Public Member Functions inherited from ark.system.driver.robot_driver.RobotDriver | |
None | __init__ (self, str component_name, Dict[str, Any] component_config=None, bool sim=True) |
Construct the driver. | |
Public Member Functions inherited from ark.system.driver.component_driver.ComponentDriver | |
None | __init__ (self, str component_name, Any component_config=None, bool sim=True) |
Initialize the driver. | |
is_sim (self) | |
Return whether this driver is running in simulation mode. |
Public Attributes | |
client = client | |
base_position = self.config.get("base_position", [0.0, 0.0, 0.0]) | |
base_orientation = self.config.get("base_orientation", [0.0, 0.0, 0.0, 1.0]) | |
initial_configuration = self.config.get("initial_configuration", [0.0] * self.client.getNumJoints(self.ref_body_id)) | |
num_joints = self.client.getNumJoints(self.ref_body_id) | |
dict | bullet_joint_infos = {} |
dict | actuated_joints = {} |
dict | joints = {} |
ref_body_id | |
Public Attributes inherited from ark.system.driver.component_driver.ComponentDriver | |
component_name = component_name | |
config = self._load_single_section(component_config, component_name) | |
sim = sim |
Additional Inherited Members | |
Protected Member Functions inherited from ark.system.driver.component_driver.ComponentDriver | |
_load_single_section (self, component_config, component_name) | |
Load the configuration of a single component from a YAML file. |
Robot driver that interfaces with the PyBullet simulation.
None pybullet_robot_driver.BulletRobotDriver.__init__ | ( | self, | |
component_name = str, | |||
Dict[str, Any] | component_config = None, | ||
Any | client = None ) |
Create a robot driver for PyBullet.
component_name | Name of the robot component. |
component_config | Configuration dictionary for the robot. |
client | Bullet client instance. |
bool pybullet_robot_driver.BulletRobotDriver.check_torque_status | ( | self | ) |
get infos ##
Return True as simulated robots are always torqued.
Reimplemented from ark.system.driver.robot_driver.RobotDriver.
None pybullet_robot_driver.BulletRobotDriver.load_robot | ( | self, | |
base_position = None, | |||
base_orientation = None, | |||
q_init = None ) |
Load the robot model into the simulator.
base_position | Optional base position [x, y, z]. |
base_orientation | Optional base orientation as quaternion. |
q_init | Optional list of initial joint positions. |
Dict[str, float] pybullet_robot_driver.BulletRobotDriver.pass_joint_efforts | ( | self, | |
List[str] | joints ) |
Return the current joint efforts.
joints | List of joint names. |
Reimplemented from ark.system.driver.robot_driver.RobotDriver.
None pybullet_robot_driver.BulletRobotDriver.pass_joint_group_control_cmd | ( | self, | |
str | control_mode, | ||
Dict[str, float] | cmd, | ||
** | kwargs ) |
control ##
Send a control command to a group of joints.
control_mode | One of position, velocity or torque. |
cmd | Mapping from joint names to command values. |
kwargs | Additional keyword arguments forwarded to PyBullet. |
Reimplemented from ark.system.driver.robot_driver.RobotDriver.
Dict[str, float] pybullet_robot_driver.BulletRobotDriver.pass_joint_positions | ( | self, | |
List[str] | joints ) |
Return the current joint positions.
joints | List of joint names. |
Reimplemented from ark.system.driver.robot_driver.RobotDriver.
Dict[str, float] pybullet_robot_driver.BulletRobotDriver.pass_joint_velocities | ( | self, | |
List[str] | joints ) |
Return the current joint velocities.
joints | List of joint names. |
Reimplemented from ark.system.driver.robot_driver.RobotDriver.
None pybullet_robot_driver.BulletRobotDriver.sim_reset | ( | self, | |
List[float] | base_pos, | ||
List[float] | base_orn, | ||
List[float] | q_init ) |
misc.
##
Reset the robot in the simulator.
base_pos | New base position. |
base_orn | New base orientation quaternion. |
q_init | List of joint positions after the reset. |
Reimplemented from ark.system.driver.robot_driver.SimRobotDriver.
dict pybullet_robot_driver.BulletRobotDriver.actuated_joints = {} |
pybullet_robot_driver.BulletRobotDriver.base_orientation = self.config.get("base_orientation", [0.0, 0.0, 0.0, 1.0]) |
pybullet_robot_driver.BulletRobotDriver.base_position = self.config.get("base_position", [0.0, 0.0, 0.0]) |
dict pybullet_robot_driver.BulletRobotDriver.bullet_joint_infos = {} |
pybullet_robot_driver.BulletRobotDriver.client = client |
pybullet_robot_driver.BulletRobotDriver.initial_configuration = self.config.get("initial_configuration", [0.0] * self.client.getNumJoints(self.ref_body_id)) |
dict pybullet_robot_driver.BulletRobotDriver.joints = {} |
pybullet_robot_driver.BulletRobotDriver.num_joints = self.client.getNumJoints(self.ref_body_id) |
pybullet_robot_driver.BulletRobotDriver.ref_body_id |