15 std::vector<GeometryConfig> geometries;
16 std::string reference_frame;
17 common::v1::GeometriesInFrame to_proto()
const;
22 std::string reference_frame;
24 std::shared_ptr<GeometryConfig> physical_object;
26 common::v1::Transform to_proto()
const;
27 static transform from_proto(
const common::v1::Transform& proto);
31 common::v1::WorldState to_proto()
const;
32 static WorldState from_proto(
const common::v1::WorldState& ws);
35 WorldState(std::vector<geometries_in_frame> obstacles, std::vector<transform> transforms)
36 : obstacles_(std::move(obstacles)), transforms_(std::move(transforms)) {}
38 friend bool operator==(
const WorldState& lhs,
const WorldState& rhs);
39 friend bool operator==(
const geometries_in_frame& lhs,
const geometries_in_frame& rhs);
40 friend bool operator==(
const transform& lhs,
const transform& rhs);
43 std::vector<geometries_in_frame> obstacles_;
44 std::vector<transform> transforms_;