Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSDK-3531 - Motion service wrappers #141

Merged
merged 16 commits into from
Aug 18, 2023

Conversation

stuqdog
Copy link
Member

@stuqdog stuqdog commented Aug 16, 2023

Major Changes

Add motion server wrapper to C++ SDK, as well as all types necessary to support motion wrappers.

@stuqdog stuqdog requested a review from a team as a code owner August 16, 2023 19:55
@stuqdog stuqdog requested review from purplenicole730 and benjirewis and removed request for a team August 16, 2023 19:55
Copy link
Member

@benjirewis benjirewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work 🧑‍🔧 thanks for implementing all of this! Some qs/nits to start.

codesamples/apis.json Outdated Show resolved Hide resolved
src/viam/sdk/common/proto_type.cpp Show resolved Hide resolved
src/viam/sdk/common/world_state.hpp Show resolved Hide resolved
*request.mutable_component_name() = component_name.to_proto();
*request.mutable_movement_sensor_name() = movement_sensor_name.to_proto();

if (heading) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go seems to have extra IsNaN checking for heading and all the doubles within motion_configuration. Do we need that here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooh nice catch, thanks! Yeah, probably should check that. I'll add it.

src/viam/sdk/services/motion/motion.hpp Show resolved Hide resolved
src/viam/sdk/services/motion/motion.hpp Outdated Show resolved Hide resolved
src/viam/sdk/services/motion/motion.hpp Outdated Show resolved Hide resolved
src/viam/sdk/services/motion/motion.hpp Outdated Show resolved Hide resolved
src/viam/sdk/services/motion/motion.hpp Outdated Show resolved Hide resolved
src/viam/sdk/tests/test_motion.cpp Outdated Show resolved Hide resolved
Copy link
Member

@benjirewis benjirewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking pretty good! I'll wait on the NaN checking and our offline discussion tomorrow to approve 🤔

Copy link
Member

@purplenicole730 purplenicole730 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@benjirewis benjirewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM % more IsNan stuff.

@stuqdog stuqdog merged commit e92e449 into viamrobotics:main Aug 18, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants