Skip to content

Commit 5a8049b

Browse files
authored
revert calling private setter (#461)
1 parent d2917f1 commit 5a8049b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/viam/sdk/spatialmath/orientation.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ void to_proto_impl<Orientation>::operator()(const Orientation& self,
5151
aa.set_z(a.z);
5252
aa.set_theta(a.theta);
5353
*orientation.mutable_axis_angles() = std::move(aa);
54-
orientation.set_has_axis_angles();
5554
}
5655

5756
void operator()(const orientation_vector& ov) {
@@ -61,7 +60,6 @@ void to_proto_impl<Orientation>::operator()(const Orientation& self,
6160
ovec.set_z(ov.z);
6261
ovec.set_theta(ov.theta);
6362
*orientation.mutable_vector_radians() = std::move(ovec);
64-
orientation.set_has_vector_radians();
6563
}
6664

6765
void operator()(const orientation_vector_degrees& ovd) {
@@ -71,7 +69,6 @@ void to_proto_impl<Orientation>::operator()(const Orientation& self,
7169
ovec.set_z(ovd.z);
7270
ovec.set_theta(ovd.theta);
7371
*orientation.mutable_vector_degrees() = std::move(ovec);
74-
orientation.set_has_vector_degrees();
7572
}
7673

7774
void operator()(const euler_angles& ea) {
@@ -80,7 +77,6 @@ void to_proto_impl<Orientation>::operator()(const Orientation& self,
8077
euler.set_roll(ea.roll);
8178
euler.set_yaw(ea.yaw);
8279
*orientation.mutable_euler_angles() = std::move(euler);
83-
orientation.set_has_euler_angles();
8480
}
8581

8682
void operator()(const quaternion& q) {
@@ -90,7 +86,6 @@ void to_proto_impl<Orientation>::operator()(const Orientation& self,
9086
quat.set_y(q.y);
9187
quat.set_z(q.z);
9288
*orientation.mutable_quaternion() = std::move(quat);
93-
orientation.set_has_quaternion();
9489
}
9590

9691
app::v1::Orientation& orientation;

0 commit comments

Comments
 (0)