Skip to content

Commit

Permalink
RSDK-7880 - add orientation config getters (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuqdog authored Jun 21, 2024
1 parent 40b7f49 commit 4b137bb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/viam/sdk/spatialmath/orientation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,5 +157,15 @@ proto::Orientation OrientationConfig::to_proto() const {
}
}

OrientationType OrientationConfig::get_type() const {
return type_;
};
const std::vector<std::uint8_t>& OrientationConfig::get_value() const {
return value_;
};
const orientation& OrientationConfig::get_orientation() const {
return orientation_;
}

} // namespace sdk
} // namespace viam
4 changes: 4 additions & 0 deletions src/viam/sdk/spatialmath/orientation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ class OrientationConfig {
// Defaults to sentinel no rotation value
OrientationConfig();

OrientationType get_type() const;
const std::vector<std::uint8_t>& get_value() const;
const orientation& get_orientation() const;

private:
OrientationType type_;
std::vector<std::uint8_t> value_;
Expand Down

0 comments on commit 4b137bb

Please sign in to comment.