1
0
mirror of https://gitlab.com/obbart/universal_robots_ros_driver.git synced 2026-04-12 19:10:47 +02:00

Initial implementation of commander

This commit is contained in:
Simon Rasmussen
2017-04-13 10:43:23 +02:00
parent 0302b05691
commit bbe2102ac8
2 changed files with 89 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
#pragma once
#include <array>
#include <sstream>
#include <iomanip>
#include "ur_modern_driver/ur/stream.h"
class URCommander
{
private:
URStream& stream_;
protected:
bool write(std::string& s);
public:
URCommander(URStream& stream) : stream_(stream)
{
}
virtual bool speedj(std::array<double, 6> &speeds, double acceleration);
virtual bool stopj(double a = 10.0);
virtual bool setDigitalOut(uint8_t pin, bool value);
virtual bool setAnalogOut(uint8_t pin, double value);
virtual bool setToolVoltage(uint8_t voltage);
virtual bool setFlag(bool value);
virtual bool setPayload(double value);
};