|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
36 if (!read_waypoints(reader)) {
55 if (!write_waypoints(writer)) {
95 yarp().setOwner(*
this);
121 return obj !=
nullptr;
140 if (group == 0 && is_dirty) {
147 will_set_waypoints();
149 mark_dirty_waypoints();
157 will_set_waypoints();
158 obj->waypoints[index] = elem;
159 mark_dirty_waypoints();
167 return obj->waypoints;
208 writer.
writeString(
"send: 'help' or 'patch (param1 val1) (param2 val2)'");
223 if (!writer.
writeTag(
"many", 1, 0)) {
231 if (field ==
"waypoints") {
235 if (!writer.
writeString(
"std::vector<yarp::dev::Nav2D::Map2DLocation> waypoints")) {
248 bool have_act =
false;
249 if (tag !=
"patch") {
250 if (((len - 1) % 2) != 0) {
253 len = 1 + ((len - 1) / 2);
257 for (
int i = 1; i < len; ++i) {
271 if (key ==
"waypoints") {
272 will_set_waypoints();
273 if (!obj->nested_read_waypoints(reader)) {
304 if (is_dirty_waypoints) {
314 if (!obj->nested_write_waypoints(writer)) {
322 void Map2DPathData::Editor::communicate()
327 if (
yarp().canWrite()) {
334 void Map2DPathData::Editor::mark_dirty()
340 void Map2DPathData::Editor::mark_dirty_waypoints()
342 if (is_dirty_waypoints) {
346 is_dirty_waypoints =
true;
351 void Map2DPathData::Editor::dirty_flags(
bool flag)
354 is_dirty_waypoints = flag;
355 dirty_count = flag ? 1 : 0;
366 for (
size_t _i4 = 0; _i4 < _size0; ++_i4) {
401 for (
size_t _i10 = 0; _i10 < _size6; ++_i10) {
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.
bool readString(std::string &str, bool *is_vocab=nullptr)
constexpr yarp::conf::vocab32_t createVocab(char a, char b=0, char c=0, char d=0)
bool setOwner(yarp::os::PortReader &owner)
Set the owner of this WireLink.
std::string toString() const
bool isValid()
Check if time is valid (non-zero).
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool writeString(const std::string &tag) const
bool write(const yarp::os::idl::WireWriter &writer) const override
bool writeListHeader(int len) const
bool writeNested(const WirePortable &obj) const
IDL-friendly connection writer.
std::vector< yarp::dev::Nav2D::Map2DLocation > waypoints
bool read(yarp::os::idl::WireReader &reader) override
bool edit(Map2DPathData &obj, bool dirty=true)
An interface for writing to a network connection.
virtual bool did_set_waypoints()
bool readNested(WirePortable &obj)
void readListBegin(yarp::os::idl::WireState &nstate, std::uint32_t &len)
bool writeTag(const char *tag, int split, int len) const
IDL-friendly connection reader.
An interface for reading from a network connection.
yarp::os::WireLink & yarp()
Get YARP state associated with this object.
bool writeVocab(std::int32_t x) const
const std::vector< yarp::dev::Nav2D::Map2DLocation > & get_waypoints() const
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool writeListBegin(int tag, std::uint32_t len) const
The main, catch-all namespace for YARP.
void set_waypoints(const std::vector< yarp::dev::Nav2D::Map2DLocation > &waypoints)
bool writeListEnd() const
bool read(ConnectionReader &reader) override
Set the bottle's value based on input from a network connection.
virtual bool will_set_waypoints()