6#include <boost/optional/optional.hpp>
8#include <viam/sdk/common/pose.hpp>
9#include <viam/sdk/common/proto_convert.hpp>
10#include <viam/sdk/spatialmath/geometry.hpp>
16class GeometriesInFrame;
36 std::vector<GeometryConfig> geometries;
65 const std::vector<geometries_in_frame>&
obstacles()
const;
77 std::vector<geometries_in_frame> obstacles_;
78 std::vector<transform> transforms_;
81namespace proto_convert_details {
105 void operator()(
const WorldState&, common::v1::WorldState*)
const;
110 WorldState operator()(
const common::v1::WorldState*)
const;
Describes the physical environment around a robot.
Definition world_state.hpp:32
WorldState(std::vector< geometries_in_frame > obstacles, std::vector< transform > transforms)
Constructs a WorldState with the given obstacles and transforms.
const std::vector< geometries_in_frame > & obstacles() const
A list of obstacles expressed as a geometry and the reference frame in which it was observed.
const std::vector< transform > & transforms() const
A list of Transforms, optionally with geometries. Used as supplemental transforms to transform a pose...
Holds a set of geometries observed from a particular reference frame.
Definition world_state.hpp:35
std::string reference_frame
The reference frame in which the geometries were observed.
Definition world_state.hpp:39
Definition proto_convert.hpp:24
Definition proto_convert.hpp:18