@@ -11,7 +11,7 @@ WorldState::geometries_in_frame WorldState::geometries_in_frame::from_proto(
1111 const common::v1::GeometriesInFrame& proto) {
1212 geometries_in_frame gif;
1313 for (const auto & geo : proto.geometries ()) {
14- gif.geometries .push_back (GeometryConfig ::from_proto (geo));
14+ gif.geometries .push_back (v2 ::from_proto (geo));
1515 }
1616 gif.reference_frame = proto.reference_frame ();
1717
@@ -23,7 +23,7 @@ common::v1::GeometriesInFrame WorldState::geometries_in_frame::to_proto() const
2323
2424 *proto.mutable_reference_frame () = reference_frame;
2525 for (const auto & geometry : geometries) {
26- *proto.mutable_geometries ()->Add () = geometry. to_proto ();
26+ *proto.mutable_geometries ()->Add () = v2:: to_proto (geometry );
2727 }
2828
2929 return proto;
@@ -63,7 +63,7 @@ WorldState::transform WorldState::transform::from_proto(const common::v1::Transf
6363 transform.pose_in_observer_frame = v2::from_proto (proto.pose_in_observer_frame ());
6464 if (proto.has_physical_object ()) {
6565 transform.physical_object =
66- std::make_shared<GeometryConfig>(GeometryConfig ::from_proto (proto.physical_object ()));
66+ std::make_shared<GeometryConfig>(v2 ::from_proto (proto.physical_object ()));
6767 }
6868
6969 return transform;
@@ -74,7 +74,7 @@ common::v1::Transform WorldState::transform::to_proto() const {
7474 *proto.mutable_reference_frame () = reference_frame;
7575 *proto.mutable_pose_in_observer_frame () = v2::to_proto (pose_in_observer_frame);
7676 if (physical_object) {
77- *proto.mutable_physical_object () = physical_object-> to_proto ();
77+ *proto.mutable_physical_object () = v2:: to_proto (*physical_object );
7878 }
7979
8080 return proto;
0 commit comments