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\
An interface for reading from a network connection.
virtual bool isBareMode() const =0
Check if the connection is bare mode.
virtual std::int32_t expectInt32()=0
Read a 32-bit integer from the network connection.
virtual bool convertTextMode()=0
Reads in a standard description in text mode, and converts it to a standard description in binary.
virtual bool isError() const =0
An interface for writing to a network connection.
virtual bool isError() const =0
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.
static Type byName(const char *name)
Type & addProperty(const char *key, const Value &val)
A single value (typically within a Bottle).
A "tamed" Portable, that promises to serialize itself in an IDL-friendly way.
virtual bool read(yarp::os::idl::WireReader &reader)
virtual bool write(const yarp::os::idl::WireWriter &writer) const
IDL-friendly connection reader.
std::vector< yarp::rosmsg::sensor_msgs::JoyFeedback > array
static constexpr const char * typeName
bool writeBare(yarp::os::ConnectionWriter &connection) const override
static constexpr const char * typeChecksum
yarp::os::idl::BottleStyle< yarp::rosmsg::sensor_msgs::JoyFeedbackArray > bottleStyle
yarp::os::idl::BareStyle< yarp::rosmsg::sensor_msgs::JoyFeedbackArray > rosStyle
bool writeBottle(yarp::os::ConnectionWriter &connection) const override
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool readBare(yarp::os::ConnectionReader &connection) override
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
yarp::os::Type getType() const override
bool readBottle(yarp::os::ConnectionReader &connection) override
static constexpr const char * typeText
The main, catch-all namespace for YARP.