17#include <creos/client_global.hpp>
18#include <creos/messages/command.hpp>
19#include <creos/messages/control_source.hpp>
20#include <creos/messages/interface_info.hpp>
21#include <creos/messages/state_reference.hpp>
22#include <creos/messages/twist.hpp>
23#include <creos/subscription.hpp>
32 static constexpr char name[] =
"setpoint_control";
33 static constexpr unsigned version = 1;
The interface for sending control setpoints to an Avular robot.
Definition setpoint_control_interface.hpp:30
virtual creos_messages::ControlSource getCurrentControlSource(int timeout_ms=1500)=0
Get the current control source of the robot.
virtual void publishStateReference(const creos_messages::StateReference &state_reference)=0
Publish a state reference to the robot.
virtual void publishVelocityCommand(const creos_messages::Twist &cmd_vel)=0
Publish a velocity command to the robot.
virtual void sendCommand(const creos_messages::CommandStamped command, int timeout_ms=5000)=0
Send a command with timestamp to the robot to trigger a one-time action.
virtual void setControlSource(const creos_messages::ControlSource &source, int timeout_ms=5000)=0
Set the control source of the robot.
virtual void sendCommand(const creos_messages::Command command, int timeout_ms=5000)=0
Send a command to the robot to trigger a one-time action.
virtual SubscriptionId subscribeToCurrentControlSource(const std::function< void(const creos_messages::ControlSource &)> &callback)=0
Subscribe to the current control source of the robot.
This type holds an subscription ID.
Definition subscription.hpp:22
ControlSource
Control source message containing the control source of the robot.
Definition control_source.hpp:28
The main namespace for the CreOS client library.
Command message containing the command to send to the robot.
Definition command.hpp:26
Command message containing the command to send to the robot, with a timestamp.
Definition command.hpp:49
State reference message containing the pose, velocity and acceleration of the robot.
Definition state_reference.hpp:31
The Twist message contains the linear and angular velocity of the robot.
Definition twist.hpp:27