Go to the documentation of this file.
23 template<
typename GetT>
28 Polygons(
const std::string & name, GetT get_fn, Side
side) : name_(name), get_fn_(get_fn), side_(
side)
31 "Polygons element callback must return a vector of PolygonDescription");
37 builder.
write(
static_cast<uint64_t
>(
type));
39 const auto & polygons = get_fn_();
41 for(
const auto & poly : polygons) { poly.write(builder); }
43 builder.
write(
static_cast<uint64_t
>(side_));
64 template<
typename GetT>
Polygons(const std::string &name, GetT get_fn, Side side)
Definition: Polygons.h:28
Definition: MessagePackBuilder.h:86
void write(mc_rtc::MessagePackBuilder &builder) const
Definition: Polygons.h:34
void update() const
Definition: Polygons.h:47
static constexpr Type type
Definition: Polygons.h:26
void start_array(size_t size)
Polygons & side(Side side)
Definition: Polygons.h:49
impl::Polygons< GetT > Polygons(const std::string &name, GetT get_fn, Side side=Side::Left)
Definition: Polygons.h:65
Type
Definition: types.h:30
Definition: Polygons.h:24
Left
Definition: types.h:158