roboglia.base.JointPV¶
-
class
JointPV(vel_read=None, vel_write=None, **kwargs)[source]¶ Bases:
roboglia.base.joint.JointA Joint with position and velocity control.
It inherits all the paramters from
Jointand adds the following additional ones:- Parameters
vel_read (str) – The register name used to retrieve current velocity
vel_write (str) – The register name used to write desired velocity
-
__init__(vel_read=None, vel_write=None, **kwargs)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
property
velocity¶ Getter uses the read register and applies inverse transformation, setter uses absolute values and writes to the write register.
-
property
velocity_read_register¶ (read-only) The register for current velocity.
-
property
velocity_write_register¶ (read-only) The register for desired velocity.
-
property
desired_velocity¶ (read-only) Retrieves the desired velocity from the write register.
-
property
value¶ For a PV joint the value is a tuple with only 2 values used: (position, velocity).
-
property
desired¶ For PV joint the desired is a tuple with only 2 values used.
-
property
activate_register¶ (read-only) The register for activation control.
-
property
active¶ (read-write) Accessor for activating the joint. If the activation registry was not specified (
None) the method will returnTrue(assumes the joints are active by default if not controllable.The setter will log a warning if you try to assign a value to this property if there is no register assigned to it.
- Returns
Value of the activate register or
Trueif no register was specified when the joint was created.- Return type
bool
-
property
auto_activate¶ Indicates if the joint should automatically be activated when the robot starts.
-
property
desired_position¶ (read-only) Retrieves the desired position from the write register.
-
property
device¶ (read-only) The device used by joint.
-
property
inverse¶ (read-only) Joint uses inverse coordinates versus the device.
-
property
name¶ (read-only) Joint’s name.
-
property
offset¶ (read-only) The offset between joint coords and device coords.
-
property
position¶ Getter uses the read register and applies inverse and offset transformations, setter clips to (min, max) limit if set, applies offset and inverse and writes to the write register.
-
property
position_read_register¶ (read-only) The register for current position.
-
property
position_write_register¶ (read-only) The register for desired position.
-
property
range¶ (read-only) Tuple (min, max) of joint limits.
- Returns
A tuple with the min and max limits for the joints.
Noneindicates that the joint does not have a particular limit set.- Return type
(min, max)