|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
30 #ifndef YARP_ROSMSG_sensor_msgs_JoyFeedback_h
31 #define YARP_ROSMSG_sensor_msgs_JoyFeedback_h
167 static constexpr
const char*
typeName =
"sensor_msgs/JoyFeedback";
170 static constexpr
const char*
typeChecksum =
"f4dcd73460360d98f36e55ee7f2e46f1";
174 # Declare of the type of feedback\n\
175 uint8 TYPE_LED = 0\n\
176 uint8 TYPE_RUMBLE = 1\n\
177 uint8 TYPE_BUZZER = 2\n\
181 # This will hold an id number for each type of each feedback.\n\
182 # Example, the first led would be id=0, the second would be id=1\n\
185 # Intensity of the feedback, from 0.0 to 1.0, inclusive. If device is\n\
186 # actually binary, driver should treat 0<=x<0.5 as off, 0.5<=x<=1 as on.\n\
204 #endif // YARP_ROSMSG_sensor_msgs_JoyFeedback_h
static const std::uint8_t TYPE_BUZZER
virtual void appendFloat32(yarp::conf::float32_t data)=0
Send a representation of a 32-bit floating point number to the network connection.
yarp::os::Type getType() const override
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
yarp::conf::float32_t expectFloat32()
static const std::uint8_t TYPE_LED
virtual bool read(yarp::os::idl::WireReader &reader)
bool readBottle(yarp::os::ConnectionReader &connection) override
virtual void appendInt8(std::int8_t data)=0
Send a representation of a 8-bit integer to the network connection.
virtual bool isBareMode() const =0
Check if the connection is bare mode.
yarp::conf::float32_t intensity
virtual std::int8_t expectInt8()=0
Read a 8-bit integer from the network connection.
yarp::os::idl::BottleStyle< yarp::rosmsg::sensor_msgs::JoyFeedback > bottleStyle
static const std::uint8_t TYPE_RUMBLE
virtual bool isError() const =0
#define BOTTLE_TAG_FLOAT32
static Type byName(const char *name)
Type & addProperty(const char *key, const Value &val)
An interface for writing to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
virtual bool isError() const =0
virtual bool convertTextMode()=0
Reads in a standard description in text mode, and converts it to a standard description in binary.
A "tamed" Portable, that promises to serialize itself in an IDL-friendly way.
virtual bool isBareMode() const =0
Check if the connection is bare mode.
virtual bool convertTextMode()=0
Converts a standard description in binary into a textual description, if the connection is in text-mo...
virtual void appendInt32(std::int32_t data)=0
Send a representation of a 32-bit integer to the network connection.
IDL-friendly connection reader.
An interface for reading from a network connection.
bool writeBare(yarp::os::ConnectionWriter &connection) const override
bool readBare(yarp::os::ConnectionReader &connection) override
bool writeBottle(yarp::os::ConnectionWriter &connection) const override
The main, catch-all namespace for YARP.
virtual yarp::conf::float32_t expectFloat32()=0
Read a 32-bit floating point number from the network connection.
static constexpr const char * typeText
static constexpr const char * typeChecksum
yarp::os::idl::BareStyle< yarp::rosmsg::sensor_msgs::JoyFeedback > rosStyle
A single value (typically within a Bottle).
static constexpr const char * typeName
virtual bool write(const yarp::os::idl::WireWriter &writer) const