Class AsyncPositionControlHandler
Defined in File async_position_control_handler.hpp
Nested Relationships
Nested Types
Class Documentation
-
class AsyncPositionControlHandler
Handler for asynchronous joint position control.
The defined structures will allow us to further extend the interface in the future.
Public Functions
-
virtual ~AsyncPositionControlHandler()
-
auto setJointPositionTarget(const JointPositionTarget &target) -> CommandResult
Sets the next joint positions for the asynchronous control.
- Parameters:
target – The target joint positions to set.
- Returns:
CommandResult containing the result for the proposed next target.
-
auto getTargetFeedback() -> TargetFeedback
Retrieves feedback about the current control state.
- Returns:
TargetFeedback containing the current status and joint positions.
-
auto stopControl() -> void
Stops the asynchronous position control.
Public Static Functions
Constructs the async control handler.
- Parameters:
robot – Shared pointer to the robot instance.
configuration – Input parameters for the initialization.
- Returns:
ConfigurationResult containing either the handler or an error message.
-
struct CommandResult
-
struct Configuration
-
struct ConfigurationResult
Public Members
-
std::shared_ptr<AsyncPositionControlHandler> handler = {}
-
std::optional<std::string> error_message = {}
-
std::shared_ptr<AsyncPositionControlHandler> handler = {}
-
struct JointPositionTarget
Public Members
-
std::array<double, Robot::kNumJoints> joint_positions = {}
-
std::array<double, Robot::kNumJoints> joint_positions = {}
-
struct TargetFeedback
Public Members
-
TargetStatus status = {TargetStatus::kIdle}
-
std::optional<std::string> error_message = {}
-
TargetStatus status = {TargetStatus::kIdle}
-
virtual ~AsyncPositionControlHandler()