17 const double angle_max,
18 const double range_min,
19 const double range_max,
21 const std::int32_t status) :
35 if (!read_angle_min(reader)) {
38 if (!read_angle_max(reader)) {
41 if (!read_range_min(reader)) {
44 if (!read_range_max(reader)) {
47 if (!nested_read_scans(reader)) {
50 if (!read_status(reader)) {
75 if (!write_angle_min(writer)) {
78 if (!write_angle_max(writer)) {
81 if (!write_range_min(writer)) {
84 if (!write_range_max(writer)) {
87 if (!nested_write_scans(writer)) {
90 if (!write_status(writer)) {
106 if (!
write(writer)) {
yarp::sig::Vector scans
the scan data, measured in [m].
std::int32_t status
the status of the device.
double angle_min
first angle of the scan [deg]
bool write(const yarp::os::idl::WireWriter &writer) const override
double angle_max
last angle of the scan [deg]
double range_min
the minimum distance of the scan [m]
bool read(yarp::os::idl::WireReader &reader) override
double range_max
the maximum distance of the scan [m]
std::string toString() const
A simple collection of objects that can be described and transmitted in a portable way.
std::string toString() const override
Gives a human-readable textual representation of the bottle.
An interface for reading from a network connection.
An interface for writing to a network connection.
static bool copyPortable(const PortWriter &writer, PortReader &reader)
Copy one portable to another, via writing and reading.
IDL-friendly connection reader.
bool readNested(WirePortable &obj)
bool readI32(std::int32_t &x)
bool read(WirePortable &obj)
bool readFloat64(yarp::conf::float64_t &x)
IDL-friendly connection writer.
bool write(const WirePortable &obj) const
bool writeI32(std::int32_t x, bool skip_tag=false) const
bool writeListHeader(int len) const
bool writeFloat64(yarp::conf::float64_t x, bool skip_tag=false) const
bool writeNested(const WirePortable &obj) const
For streams capable of holding different kinds of content, check what they actually have.