#include <MotorizedJointBus.h>
Inherits EBusTraits.
|
using | BusIdType = AZ::EntityId |
|
|
static constexpr
AZ::EBusAddressPolicy | AddressPolicy = AZ::EBusAddressPolicy::ById |
|
Interface to communicate with motorized joints. It allows to apply setpoint and tracking performance of the PID controller.
virtual float ROS2::MotorizedJointRequest::GetCurrentMeasurement |
( |
| ) |
|
|
pure virtual |
Retrieve current measurement. Measurement is the value of the movement - eg protrusion of an actuator. For linear actuators, measurement is given in meters. For the rotational actuators, measurement is given in radians. When the setpoint is reached this should be close to setpoint.
- Returns
- measurement value in meters or radians.
virtual float ROS2::MotorizedJointRequest::GetError |
( |
| ) |
|
|
pure virtual |
Retrieve current control error (difference between setpoint and measurement) When the setpoint is reached this should be close to zero. For linear actuators, the error is given in meters. For the rotational actuators, the error is given in radians.
- Returns
- controller error's value in meters or radians
virtual float ROS2::MotorizedJointRequest::GetSetpoint |
( |
| ) |
|
|
pure virtual |
Get current setpoint value for position controller. If SetSetpoint
has not been called, it returns initial position of joint. For linear actuators, the setpoint is given in meters. For the rotational actuators, the setpoint is given in radians.
- Returns
- setpoint value in meters or radians
virtual void ROS2::MotorizedJointRequest::SetSetpoint |
( |
float |
setpoint | ) |
|
|
pure virtual |
Set current setpoint value for position controller. The setpoint is the desired position for a simulated actuator. For linear actuators, the setpoint is given in meters. For the rotational actuators, the setpoint is given in radians.
- Parameters
-
setpoint | value in meters or radians |
The documentation for this class was generated from the following file:
- Gems/ROS2/Code/Include/ROS2/Manipulator/MotorizedJointBus.h