YARP
Yet Another Robot Platform
port_power/TargetVer1b.h
Part of a series of examples on the different ways of using ports. See
Port power tutorial
.
/*
* Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
* Copyright (C) 2006-2010 RobotCub Consortium
* All rights reserved.
*
* This software may be modified and distributed under the terms of the
* BSD-3-Clause license. See the accompanying LICENSE file for details.
*/
#ifndef TARGETVER1B_INC
#define TARGETVER1B_INC
#include <
yarp/conf/system.h
>
#include <
yarp/os/Bottle.h
>
YARP_BEGIN_PACK
class
Target {
public
:
Target() {
tag =
BOTTLE_TAG_LIST
+
BOTTLE_TAG_INT32
;
len = 2;
}
NetInt32
tag;
NetInt32
len;
NetInt32
x;
NetInt32
y;
};
YARP_END_PACK
#endif
YARP_END_PACK
#define YARP_END_PACK
Ends 1 byte packing for structs/classes.
Definition:
system.h:194
BOTTLE_TAG_LIST
#define BOTTLE_TAG_LIST
Definition:
Bottle.h:30
YARP_BEGIN_PACK
#define YARP_BEGIN_PACK
Starts 1 byte packing for structs/classes.
Definition:
system.h:193
BOTTLE_TAG_INT32
#define BOTTLE_TAG_INT32
Definition:
Bottle.h:23
system.h
Bottle.h
yarp::os::NetInt32
std::int32_t NetInt32
Definition of the NetInt32 type.
Definition:
NetInt32.h:33
YARP
3.4.100+20201223.2+gitb8ea4d712
Generated on Sun Jan 3 2021 02:46:21 for YARP by
1.8.20