|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
26 #ifndef YARP_ROSMSG_nav_msgs_OccupancyGrid_h
27 #define YARP_ROSMSG_nav_msgs_OccupancyGrid_h
46 std::vector<std::int8_t>
data;
82 if (len > 0 && !connection.
expectBlock((
char*)&
data[0],
sizeof(std::int8_t)*len)) {
113 for (
int i=0; i<len; i++) {
166 for (
size_t i=0; i<
data.size(); i++) {
187 static constexpr
const char*
typeName =
"nav_msgs/OccupancyGrid";
190 static constexpr
const char*
typeChecksum =
"3381f2d731d4076ec5c71b0759edbe4e";
194 # This represents a 2-D grid map, in which each cell represents the probability of\n\
199 #MetaData for the map\n\
202 # The map data, in row-major order, starting with (0,0). Occupancy\n\
203 # probabilities are in the range [0,100]. Unknown is -1.\n\
206 ================================================================================\n\
207 MSG: std_msgs/Header\n\
208 # Standard metadata for higher-level stamped data types.\n\
209 # This is generally used to communicate timestamped data \n\
210 # in a particular coordinate frame.\n\
212 # sequence ID: consecutively increasing ID \n\
214 #Two-integer timestamp that is expressed as:\n\
215 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
216 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
217 # time-handling sugar is provided by the client library\n\
219 #Frame this data is associated with\n\
224 ================================================================================\n\
225 MSG: nav_msgs/MapMetaData\n\
226 # This hold basic information about the characterists of the OccupancyGrid\n\
228 # The time at which the map was loaded\n\
229 time map_load_time\n\
230 # The map resolution [m/cell]\n\
231 float32 resolution\n\
232 # Map width [cells]\n\
234 # Map height [cells]\n\
236 # The origin of the map [m, m, rad]. This is the real-world pose of the\n\
237 # cell (0,0) in the map.\n\
238 geometry_msgs/Pose origin\n\
239 ================================================================================\n\
240 MSG: geometry_msgs/Pose\n\
241 # A representation of pose in free space, composed of position and orientation. \n\
243 Quaternion orientation\n\
245 ================================================================================\n\
246 MSG: geometry_msgs/Point\n\
247 # This contains the position of a point in free space\n\
252 ================================================================================\n\
253 MSG: geometry_msgs/Quaternion\n\
254 # This represents an orientation in free space in quaternion form.\n\
275 #endif // YARP_ROSMSG_nav_msgs_OccupancyGrid_h
bool writeBare(yarp::os::ConnectionWriter &connection) const override
virtual bool read(yarp::os::idl::WireReader &reader)
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::rosmsg::std_msgs::Header header
yarp::os::Type getType() const override
virtual std::int8_t expectInt8()=0
Read a 8-bit integer from the network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
yarp::os::idl::BottleStyle< yarp::rosmsg::nav_msgs::OccupancyGrid > bottleStyle
virtual bool isError() const =0
static constexpr const char * typeName
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.
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.
yarp::os::idl::BareStyle< yarp::rosmsg::nav_msgs::OccupancyGrid > rosStyle
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.
static constexpr const char * typeText
An interface for reading from a network connection.
bool writeBottle(yarp::os::ConnectionWriter &connection) const override
std::vector< std::int8_t > data
The main, catch-all namespace for YARP.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
virtual void appendExternalBlock(const char *data, size_t len)=0
Send a block of data to the network connection, without making a copy.
virtual bool expectBlock(char *data, size_t len)=0
Read a block of data from the network connection.
static constexpr const char * typeChecksum
A single value (typically within a Bottle).
yarp::rosmsg::nav_msgs::MapMetaData info
bool readBare(yarp::os::ConnectionReader &connection) override
bool readBottle(yarp::os::ConnectionReader &connection) override
virtual bool write(const yarp::os::idl::WireWriter &writer) const