6 #ifndef FLEXIV_RDK_DEVICE_HPP_
7 #define FLEXIV_RDK_DEVICE_HPP_
37 const std::map<std::string, bool>
list()
const;
46 bool exist(
const std::string& name)
const;
56 void Enable(
const std::string& name);
79 const std::string& name,
const std::map<std::string, std::variant<int, double>>& cmds);
83 std::unique_ptr<Impl> pimpl_;
Interface with the robot device(s).
void Enable(const std::string &name)
[Blocking] Enable the specified device.
const std::map< std::string, bool > list() const
[Blocking] Request a list of existing devices and their status (enabled/disabled).
Device(const Robot &robot)
[Non-blocking] Create an instance and initialize device control interface.
void Command(const std::string &name, const std::map< std::string, std::variant< int, double >> &cmds)
[Blocking] Send command(s) for the specified device.
void Disable(const std::string &name)
[Blocking] Disable the specified device.
bool exist(const std::string &name) const
[Blocking] Whether the specified device already exists.
Main interface with the robot, containing several function categories and background services.