|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
16 #ifndef YARP_ROSMSG_visualization_msgs_MarkerArray_h
17 #define YARP_ROSMSG_visualization_msgs_MarkerArray_h
33 std::vector<yarp::rosmsg::visualization_msgs::Marker>
markers;
51 for (
int i=0; i<len; i++) {
74 for (
int i=0; i<len; i++) {
94 for (
size_t i=0; i<
markers.size(); i++) {
111 for (
size_t i=0; i<
markers.size(); i++) {
134 static constexpr
const char*
typeName =
"visualization_msgs/MarkerArray";
137 static constexpr
const char*
typeChecksum =
"d155b9ce5188fbaf89745847fd5882d7";
143 ================================================================================\n\
144 MSG: visualization_msgs/Marker\n\
145 # See http://www.ros.org/wiki/rviz/DisplayTypes/Marker and http://www.ros.org/wiki/rviz/Tutorials/Markers%3A%20Basic%20Shapes for more information on using this message with rviz\n\
151 uint8 LINE_STRIP=4\n\
154 uint8 SPHERE_LIST=7\n\
156 uint8 TEXT_VIEW_FACING=9\n\
157 uint8 MESH_RESOURCE=10\n\
158 uint8 TRIANGLE_LIST=11\n\
165 Header header # header for time/frame information\n\
166 string ns # Namespace to place this object in... used in conjunction with id to create a unique name for the object\n\
167 int32 id # object ID useful in conjunction with the namespace for manipulating and deleting the object later\n\
168 int32 type # Type of object\n\
169 int32 action # 0 add/modify an object, 1 (deprecated), 2 deletes an object, 3 deletes all objects\n\
170 geometry_msgs/Pose pose # Pose of the object\n\
171 geometry_msgs/Vector3 scale # Scale of the object 1,1,1 means default (usually 1 meter square)\n\
172 std_msgs/ColorRGBA color # Color [0.0-1.0]\n\
173 duration lifetime # How long the object should last before being automatically deleted. 0 means forever\n\
174 bool frame_locked # If this marker should be frame-locked, i.e. retransformed into its frame every timestep\n\
176 #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\
177 geometry_msgs/Point[] points\n\
178 #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\
179 #number of colors must either be 0 or equal to the number of points\n\
180 #NOTE: alpha is not yet used\n\
181 std_msgs/ColorRGBA[] colors\n\
183 # NOTE: only used for text markers\n\
186 # NOTE: only used for MESH_RESOURCE markers\n\
187 string mesh_resource\n\
188 bool mesh_use_embedded_materials\n\
190 ================================================================================\n\
191 MSG: std_msgs/Header\n\
192 # Standard metadata for higher-level stamped data types.\n\
193 # This is generally used to communicate timestamped data \n\
194 # in a particular coordinate frame.\n\
196 # sequence ID: consecutively increasing ID \n\
198 #Two-integer timestamp that is expressed as:\n\
199 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
200 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
201 # time-handling sugar is provided by the client library\n\
203 #Frame this data is associated with\n\
208 ================================================================================\n\
209 MSG: geometry_msgs/Pose\n\
210 # A representation of pose in free space, composed of position and orientation. \n\
212 Quaternion orientation\n\
214 ================================================================================\n\
215 MSG: geometry_msgs/Point\n\
216 # This contains the position of a point in free space\n\
221 ================================================================================\n\
222 MSG: geometry_msgs/Quaternion\n\
223 # This represents an orientation in free space in quaternion form.\n\
230 ================================================================================\n\
231 MSG: geometry_msgs/Vector3\n\
232 # This represents a vector in free space. \n\
233 # It is only meant to represent a direction. Therefore, it does not\n\
234 # make sense to apply a translation to it (e.g., when applying a \n\
235 # generic rigid transformation to a Vector3, tf2 will only apply the\n\
236 # rotation). If you want your data to be translatable too, use the\n\
237 # geometry_msgs/Point message instead.\n\
242 ================================================================================\n\
243 MSG: std_msgs/ColorRGBA\n\
263 #endif // YARP_ROSMSG_visualization_msgs_MarkerArray_h
std::vector< yarp::rosmsg::visualization_msgs::Marker > markers
bool readBottle(yarp::os::ConnectionReader &connection) override
virtual bool read(yarp::os::idl::WireReader &reader)
static constexpr const char * typeChecksum
virtual bool isBareMode() const =0
Check if the connection is bare mode.
bool writeBottle(yarp::os::ConnectionWriter &connection) const override
bool readBare(yarp::os::ConnectionReader &connection) override
virtual bool isError() const =0
bool writeBare(yarp::os::ConnectionWriter &connection) const override
static Type byName(const char *name)
static constexpr const char * typeText
virtual std::int32_t expectInt32()=0
Read a 32-bit integer from the network connection.
Type & addProperty(const char *key, const Value &val)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
An interface for writing to a network connection.
yarp::os::idl::BareStyle< yarp::rosmsg::visualization_msgs::MarkerArray > rosStyle
yarp::os::Type getType() const override
virtual bool isError() const =0
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
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.
static constexpr const char * typeName
The main, catch-all namespace for YARP.
A single value (typically within a Bottle).
yarp::os::idl::BottleStyle< yarp::rosmsg::visualization_msgs::MarkerArray > bottleStyle
virtual bool write(const yarp::os::idl::WireWriter &writer) const