|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
16 #ifndef YARP_ROSMSG_sensor_msgs_JoyFeedbackArray_h
17 #define YARP_ROSMSG_sensor_msgs_JoyFeedbackArray_h
33 std::vector<yarp::rosmsg::sensor_msgs::JoyFeedback>
array;
51 for (
int i=0; i<len; i++) {
74 for (
int i=0; i<len; i++) {
94 for (
size_t i=0; i<
array.size(); i++) {
111 for (
size_t i=0; i<
array.size(); i++) {
134 static constexpr
const char*
typeName =
"sensor_msgs/JoyFeedbackArray";
137 static constexpr
const char*
typeChecksum =
"cde5730a895b1fc4dee6f91b754b213d";
141 # This message publishes values for multiple feedback at once. \n\
142 JoyFeedback[] array\n\
143 ================================================================================\n\
144 MSG: sensor_msgs/JoyFeedback\n\
145 # Declare of the type of feedback\n\
146 uint8 TYPE_LED = 0\n\
147 uint8 TYPE_RUMBLE = 1\n\
148 uint8 TYPE_BUZZER = 2\n\
152 # This will hold an id number for each type of each feedback.\n\
153 # Example, the first led would be id=0, the second would be id=1\n\
156 # Intensity of the feedback, from 0.0 to 1.0, inclusive. If device is\n\
157 # actually binary, driver should treat 0<=x<0.5 as off, 0.5<=x<=1 as on.\n\
175 #endif // YARP_ROSMSG_sensor_msgs_JoyFeedbackArray_h
virtual bool read(yarp::os::idl::WireReader &reader)
virtual bool isBareMode() const =0
Check if the connection is bare mode.
bool readBare(yarp::os::ConnectionReader &connection) override
yarp::os::idl::BottleStyle< yarp::rosmsg::sensor_msgs::JoyFeedbackArray > bottleStyle
bool readBottle(yarp::os::ConnectionReader &connection) override
virtual bool isError() const =0
std::vector< yarp::rosmsg::sensor_msgs::JoyFeedback > array
static Type byName(const char *name)
virtual std::int32_t expectInt32()=0
Read a 32-bit integer from the network connection.
Type & addProperty(const char *key, const Value &val)
An interface for writing to a network connection.
bool writeBare(yarp::os::ConnectionWriter &connection) const override
static constexpr const char * typeText
virtual bool isError() const =0
static constexpr const char * typeChecksum
virtual bool convertTextMode()=0
Reads in a standard description in text mode, and converts it to a standard description in binary.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
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 read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
yarp::os::Type getType() const override
The main, catch-all namespace for YARP.
A single value (typically within a Bottle).
yarp::os::idl::BareStyle< yarp::rosmsg::sensor_msgs::JoyFeedbackArray > rosStyle
bool writeBottle(yarp::os::ConnectionWriter &connection) const override
static constexpr const char * typeName
virtual bool write(const yarp::os::idl::WireWriter &writer) const