Class SetPositionAbsoluteRequest

Inheritance Relationships

Base Type

Class Documentation

class SetPositionAbsoluteRequest : public myactuator_rmd::SingleMotorRequest<CommandType::ABSOLUTE_POSITION_CLOSED_LOOP_CONTROL>

Request for setting the absolute position of the actuator with a given maximum speed.

Public Functions

SetPositionAbsoluteRequest(float const position, float const max_speed)
SetPositionAbsoluteRequest() = delete

Class constructor.

Parameters:
  • position[in] The position set-point in degree

  • max_speed[in] The maximum speed for the motion in degree per second

SetPositionAbsoluteRequest(SetPositionAbsoluteRequest const&) = default
SetPositionAbsoluteRequest &operator=(SetPositionAbsoluteRequest const&) = default
SetPositionAbsoluteRequest(SetPositionAbsoluteRequest&&) = default
SetPositionAbsoluteRequest &operator=(SetPositionAbsoluteRequest&&) = default
float getMaxSpeed() const noexcept

Get the maximum speed.

Returns:

The maximum speed for the motion in degree per second

float getPosition() const noexcept

Get the position.

Returns:

The position set-point in degree

constexpr SingleMotorRequest(std::array<std::uint8_t, 8> const &data)
constexpr SingleMotorRequest() = default
SingleMotorRequest(SingleMotorRequest const&) = default
SingleMotorRequest(SingleMotorRequest&&) = default