Go to the documentation of this file.
   56             double existence_prob;
 
   57             if (r.
readValue(
"existence_prob", existence_prob))
 
  224     double roll = 0, pitch = 0, yaw = 0;
 
  233     pose.
R.
setRPY(roll, pitch, yaw);
 
  320     for(
unsigned int i = 0; i < triangles.
size(); ++i)
 
  323         w.
writeValue(
"i1", 
static_cast<int>(triangles[i].i1_));
 
  324         w.
writeValue(
"i2", 
static_cast<int>(triangles[i].i2_));
 
  325         w.
writeValue(
"i3", 
static_cast<int>(triangles[i].i3_));
 
  410                 mesh.
add(
geo::Box(min, max).getMesh().getTransformed(pose));
 
  440             mesh.
add(
geo::Box(min, max).getMesh().getTransformed(pose));
 
  460     w.
writeValue(
"nsec", (
int)((time - (
int)time) * 1e9));
 
  470     time = sec + (double)nsec / 1e9;
 
  478     const static int MASK_SERIALIZATION_VERSION = 0;
 
  480     m << MASK_SERIALIZATION_VERSION;
 
  494         cv::Point2i pt = it();
 
  495         m << pt.y * mask.
width() + pt.x;
 
  514     for(
int i = 0; i < size; ++i)
 
  519         mask.
addPoint(idx % width, idx / width);
 
  
virtual void setMesh(const Mesh &mesh)
void setRotation(const QuaternionT< T > &q)
void setExistenceProbability(const UUID &id, double prob)
void addData(const UUID &id, const tue::config::DataConstPointer &data)
void calculateEdgesAndNormals(ConvexHull &chull)
const std::vector< TriangleI > & getTriangleIs() const
bool deserialize(io::Reader &r, UpdateRequest &req)
bool value(const std::string &name, T &value, const RequiredOrOptional=REQUIRED) const
virtual bool endArray()=0
void add(const Mesh &mesh)
virtual const Mesh & getMesh() const
bool deserializeTimestamp(ed::io::Reader &r, double &time)
void setLastUpdateTimestamp(const UUID &id, double t)
bool loadFromYAMLString(const std::string &string, ReaderWriter &config, const ResolveConfig &resolve_config=ResolveConfig::defaultConfig())
virtual void endArray()=0
virtual void writeValue(const std::string &key, float f)=0
bool readGroup(const std::string &name, const RequiredOrOptional opt=OPTIONAL)
const std::vector< geo::Vector3 > & getPoints() const
virtual bool readValue(const std::string &, float &f)=0
void addPoint(const cv::Point2i &p)
virtual bool readArray(const std::string &name)=0
void setPose(const UUID &id, const geo::Pose3D &pose)
void setCollision(const UUID &id, const geo::ShapeConstPtr &collision)
void setConvexHullNew(const UUID &id, const ed::ConvexHull &convex_hull, const geo::Pose3D &pose, double time, std::string source="")
virtual void writeArray(const std::string &key)=0
virtual bool readGroup(const std::string &name)=0
void setType(const UUID &id, const std::string &type)
void setVisual(const UUID &id, const geo::ShapeConstPtr &visual)
virtual bool nextArrayItem()=0
virtual void endArrayItem()=0
virtual bool endGroup()=0
void addTriangle(unsigned int i1, unsigned int i2, unsigned int i3)
virtual void addArrayItem()=0
bool readArray(const std::string &name, const RequiredOrOptional opt=OPTIONAL)
const_iterator begin(int width=0) const
void serialize(const geo::Pose3D &pose, ed::io::Writer &w)
void calculateArea(ConvexHull &c)
calculateArea calculate the area of the ConvexHull in xy-plane.
const_iterator end() const
void setRPY(T roll, T pitch, T yaw)
unsigned int addPoint(const geo::Vector3 &p)
void serializeTimestamp(double time, ed::io::Writer &w)
std::vector< geo::Vec2f > points