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

added optional mavsdk server built with grpc proto reflection. This a… #1850

Merged
merged 3 commits into from
Jul 11, 2022

Conversation

ykhedar
Copy link
Contributor

@ykhedar ykhedar commented Jul 10, 2022

…llows quick debugging using tools like grpcurl. The feature can be tested as follows:

  1. Build the server with the following command from the src directory:

cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DBUILD_MAVSDK_SERVER=ON -DBUILD_WITH_PROTO_REFLECTION=ON -Bbuild/default -H.

  1. Run the SITL with this server.
  2. Use grpcurl like follows:

./grpcurl -plaintext localhost:50051 mavsdk.rpc.telemetry.TelemetryService/SubscribePosition

This should print the telemetry:

{ "position": { "latitude_deg": 47.397742099999995, "longitude_deg": 8.5455937, "absolute_altitude_m": 488.07004, "relative_altitude_m": 0.010000001 } }
{ "position": { "latitude_deg": 47.397742099999995, "longitude_deg": 8.5455937, "absolute_altitude_m": 488.07004, "relative_altitude_m": 0.010000001 } }
{ "position": { "latitude_deg": 47.397742099999995, "longitude_deg": 8.5455937, "absolute_altitude_m": 488.07004, "relative_altitude_m": 0.010000001 } }

…llows quick debugging using tools like grpcurl.
@ykhedar ykhedar force-pushed the pr-grpc-proto-reflection branch from e8147ef to 36b3bca Compare July 10, 2022 13:48
Copy link
Collaborator

@JonasVautherin JonasVautherin left a comment

Choose a reason for hiding this comment

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

Looks nice!

Just a nitpick and an open question for you 😊

CMakeLists.txt Outdated Show resolved Hide resolved
src/mavsdk_server/src/CMakeLists.txt Outdated Show resolved Hide resolved
Copy link
Collaborator

@JonasVautherin JonasVautherin left a comment

Choose a reason for hiding this comment

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

Thanks a lot!

@julianoes julianoes merged commit a8583a2 into mavlink:main Jul 11, 2022
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