rofunc.simulator.base_sim
#
1. Module Contents#
1.1. Classes#
1.2. API#
- class rofunc.simulator.base_sim.RobotSim(args)[source]#
Initialization
Initialize the robot-centered simulator
- Parameters:
args – arguments
- show(visual_obs_flag=False)[source]#
Visualize the robot in an interactive viewer :param visual_obs_flag: If True, show the visual observation
- update_object(object_handles, object_poses, state_type)[source]#
Update the object pose
- Parameters:
object_handles –
object_poses –
state_type – gymapi.STATE_ALL, gymapi.STATE_POS, gymapi.STATE_VEL
- Returns:
- run_traj_multi_rigid_bodies(traj: List, attracted_rigid_bodies: List = None, object_start_pose: List = None, object_end_pose: List = None, object_related_joints: List = None, update_freq=0.001, verbose=True)[source]#
Run the trajectory with multiple rigid bodies, the default is to run the trajectory with the left and right hand of bimanual robot.
- Parameters:
traj – a list of trajectories, each trajectory is a numpy array of shape (N, 7)
attracted_rigid_bodies – [list], e.g. [“panda_left_hand”, “panda_right_hand”]
update_freq – the frequency of updating the robot pose
verbose – if True, visualize the attractor spheres
- Returns: