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-7463 - Update Motion service in C++ SDK #238

Merged
merged 8 commits into from
May 20, 2024

Conversation

nfranczak
Copy link
Member

We are updating the python SDK to match the following changes made in API (viamrobotics/api@503a9a4)

We would like to also explicitly call out the changes reviewers should be aware of:

  1. GeoObstacle has been renamed into GeoGeometry - we note that they store the same information and this is just a re-name.
    This means that the return type of GetObstacles in the navigation service has changes from GeoObstacle into GeoGeometry, but the navigation service is not yet a thing in this SDK so nothing to worry about here :)
  2. We have added an argument to the motion service method MoveOnGlobe. The argument is called bounding_regions and is a list of GeoGeometrys
  3. The motion service method MoveOnGlobe also takes in a list of obstacles of type GeoObstacle. This has been updated to GeoGeometry

@nfranczak nfranczak requested a review from a team as a code owner May 16, 2024 18:34
@nfranczak nfranczak requested review from njooma, purplenicole730, stuqdog and acmorrow and removed request for a team May 16, 2024 18:34
Copy link
Member

@stuqdog stuqdog left a comment

Choose a reason for hiding this comment

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

One requested change for tests, otherwise the code looks good to me.

We will need to figure out why the tests are failing before we merge this, however.

edit: also we'll want to run clang format (./bin/run-clang-format.sh) to make sure the linter test passes.

std::vector<sdk::GeometryConfig> peek_map_obstacles;
std::shared_ptr<constraints> peek_constraints;
std::shared_ptr<sdk::motion_configuration> peek_motion_configuration;
std::vector<sdk::geo_geometry> peek_bounding_regions;
Copy link
Member

Choose a reason for hiding this comment

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

We've added this as a field here but we don't seem to actually set it or peek it anywhere. We should follow the example of how peek_obstacles is used (i.e., set peek_bounding_regions in the move_on_globe request and then verify that it's been set in test_motion.cpp).

@github-actions github-actions bot force-pushed the workflow/update-protos branch 2 times, most recently from 7bea6ed to ed9881f Compare May 17, 2024 17:11
@purplenicole730 purplenicole730 removed their request for review May 17, 2024 18:36
@nfranczak nfranczak requested a review from stuqdog May 20, 2024 17:46
@nfranczak nfranczak merged commit 19e05ab into viamrobotics:workflow/update-protos May 20, 2024
3 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
3 participants