21template <
typename MotionGeneratorType>
36 void writeOnce(
const MotionGeneratorType& motion_generator_input,
37 const std::optional<const Torques>& control_input)
override;
55 ActiveMotionGenerator(std::shared_ptr<Robot::Impl>
robot_impl,
58 research_interface::robot::Move::ControllerMode controller_type)
60 controller_type_(controller_type){};
62 bool isTorqueControlFinished(
const std::optional<const Torques>& control_input);
64 research_interface::robot::Move::ControllerMode controller_type_;
Implements the ActiveControlBase abstract class.
uint32_t motion_id
motion id of running motion
Definition active_control.h:84
ActiveControl(std::shared_ptr< Robot::Impl > robot_impl, uint32_t motion_id, std::unique_lock< std::mutex > control_lock)
Construct a new ActiveControl object.
std::shared_ptr< Robot::Impl > robot_impl
shared pointer to Robot::Impl instance for read and write accesses
Definition active_control.h:81
std::unique_lock< std::mutex > control_lock
control-lock preventing parallel control processes
Definition active_control.h:87
friend class Robot
franka::Robot as friend to allow construction of ActiveMotionGenerator<MotionGeneratorType> in start<...
Definition active_motion_generator.h:43
void writeOnce(const MotionGeneratorType &motion_generator_input, const std::optional< const Torques > &control_input) override
Updates the motion generator commands of an active control.