33 if (!read_waypoints(reader)) {
52 if (!write_waypoints(writer)) {
92 yarp().setOwner(*
this);
118 return obj !=
nullptr;
137 if (group == 0 && is_dirty) {
144 will_set_waypoints();
146 mark_dirty_waypoints();
154 will_set_waypoints();
155 obj->waypoints[index] = elem;
156 mark_dirty_waypoints();
164 return obj->waypoints;
205 writer.
writeString(
"send: 'help' or 'patch (param1 val1) (param2 val2)'");
220 if (!writer.
writeTag(
"many", 1, 0)) {
228 if (field ==
"waypoints") {
232 if (!writer.
writeString(
"std::vector<yarp::dev::Nav2D::Map2DLocation> waypoints")) {
245 bool have_act =
false;
246 if (tag !=
"patch") {
247 if (((len - 1) % 2) != 0) {
250 len = 1 + ((len - 1) / 2);
254 for (
int i = 1; i < len; ++i) {
268 if (key ==
"waypoints") {
269 will_set_waypoints();
270 if (!obj->nested_read_waypoints(reader)) {
301 if (is_dirty_waypoints) {
311 if (!obj->nested_write_waypoints(writer)) {
319 void Map2DPathData::Editor::communicate()
324 if (
yarp().canWrite()) {
331 void Map2DPathData::Editor::mark_dirty()
337 void Map2DPathData::Editor::mark_dirty_waypoints()
339 if (is_dirty_waypoints) {
343 is_dirty_waypoints =
true;
348 void Map2DPathData::Editor::dirty_flags(
bool flag)
351 is_dirty_waypoints = flag;
352 dirty_count = flag ? 1 : 0;
363 for (
size_t _i4 = 0; _i4 < _size0; ++_i4) {
398 for (
size_t _i10 = 0; _i10 < _size6; ++_i10) {
virtual bool did_set_waypoints()
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
void set_waypoints(const std::vector< yarp::dev::Nav2D::Map2DLocation > &waypoints)
virtual bool will_set_waypoints()
bool edit(Map2DPathData &obj, bool dirty=true)
const std::vector< yarp::dev::Nav2D::Map2DLocation > & get_waypoints() const
std::string toString() const
bool write(const yarp::os::idl::WireWriter &writer) const override
std::vector< yarp::dev::Nav2D::Map2DLocation > waypoints
bool read(yarp::os::idl::WireReader &reader) override
A simple collection of objects that can be described and transmitted in a portable way.
bool read(ConnectionReader &reader) override
Set the bottle's value based on input from a network connection.
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.
bool setOwner(yarp::os::PortReader &owner)
Set the owner of this WireLink.
yarp::os::WireLink & yarp()
Get YARP state associated with this object.
IDL-friendly connection reader.
bool readNested(WirePortable &obj)
bool readString(std::string &str, bool *is_vocab=nullptr)
void readListBegin(yarp::os::idl::WireState &nstate, std::uint32_t &len)
IDL-friendly connection writer.
bool writeVocab32(yarp::conf::vocab32_t x) const
bool writeListHeader(int len) const
bool writeTag(const char *tag, int split, int len) const
bool writeListBegin(int tag, std::uint32_t len) const
bool writeListEnd() const
bool writeString(const std::string &tag) const
bool writeNested(const WirePortable &obj) const
bool isValid()
Check if time is valid (non-zero).
The main, catch-all namespace for YARP.