|
|
| robot_base_handle = robot_base_handle |
|
| topic_prefix = topic_prefix |
|
| rclcpp_node = rclcpp_node |
|
| sim = sim |
|
| joint_handles = sim.getObjectsInTree(self.robot_base_handle, joint_type) |
|
| DOF = len(self.joint_handles) |
|
| rds = RobotDriverServer(rclcpp_node, f"/sas_robot_driver_coppeliasim{self.topic_prefix}") |
|
np.ndarray | q = np.zeros(self.DOF) |
|
np.ndarray | q_min = np.zeros(self.DOF) |
|
np.ndarray | q_max = np.zeros(self.DOF) |
|
np.ndarray | q_dot = np.zeros(self.DOF) |
|
np.ndarray | q_force = np.zeros(self.DOF) |
|
np.ndarray|None | q_target = None |
|
np.ndarray|None | q_dot_target = None |
|
|
| _dynamic_control_mode = None |
Publishes joint states and applies joint commands for a CoppeliaSim robot.
◆ __init__()
| sas_robot_driver_coppeliasim.simros2_robot_manager.SimROS2RobotManager.__init__ |
( |
| self, |
|
|
str | topic_prefix, |
|
|
rclcpp_Node | rclcpp_node, |
|
|
| sim, |
|
|
int | None | robot_base_handle = None, |
|
|
list[str] | None | joint_names = None ) |
Either ``robot_base_handle`` or ``joint_names`` must be provided, but not both.
:param topic_prefix: ROS 2 topic prefix for this robot's driver server.
:param rclcpp_node: C++ rclcpp node used by the RobotDriverServer.
:param sim: CoppeliaSim simulation object provided by the simulator.
:param robot_base_handle: CoppeliaSim handle of the robot base object.
All joints in the subtree are used automatically.
:param joint_names: Explicit list of joint names (not yet implemented).
◆ _set_dynamic_control_mode()
| sas_robot_driver_coppeliasim.simros2_robot_manager.SimROS2RobotManager._set_dynamic_control_mode |
( |
| self, |
|
|
| mode ) |
|
protected |
Switches the dynamically enabled joints between position and velocity control.
◆ actuation_update()
| sas_robot_driver_coppeliasim.simros2_robot_manager.SimROS2RobotManager.actuation_update |
( |
| self | ) |
|
Applies the latest joint targets from the driver server to the simulator.
The last type of target received selects the control mode: target joint positions use
position control and target joint velocities use velocity control. Velocity targets
persist until a new target is received, so send zeros or a position target to stop.
◆ sensing_update()
| sas_robot_driver_coppeliasim.simros2_robot_manager.SimROS2RobotManager.sensing_update |
( |
| self | ) |
|
Reads joint states from the simulator and publishes them via the driver server.
The documentation for this class was generated from the following file:
- src/sas_robot_driver_coppeliasim/sas_robot_driver_coppeliasim/simros2_robot_manager.py