Git Product home page Git Product logo

Comments (6)

giovanidiniz avatar giovanidiniz commented on August 18, 2024 1

SWEEEEEET!!!

This is awesome! Really. Before the renaming the process was a little bit involved but not too hard, but now is super easy.
Thanks so much!
I tested the takeoff and land example in different udp port and it also works. Assume serial port should work fine as well?

from mavsdk-python.

JonasVautherin avatar JonasVautherin commented on August 18, 2024

Hello!

Sorry about that, we recently renamed the project to MAVSDK, and therefore there are some incompatibilities between the main branches of both project.

To use MAVSDK-Python, just run pip install mavsdk (make sure you have python3.6+, it may mean pip3 install mavsdk).

Let us know how it goes!

from mavsdk-python.

giovanidiniz avatar giovanidiniz commented on August 18, 2024

Hi Jonas,
Is the backend going to be installed pip? So far, I can install the sdk without errors. The issue is I keep getting these UNIMPLEMENTED return codes from the gRPC server:

grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with:
status = StatusCode.UNIMPLEMENTED
details = ""
debug_error_string = "{"created":"@1561335925.969796887","description":"Error received from peer ipv4:127.0.0.1:50051","file":"src/core/lib/surface/call.cc","file_line":1041,"grpc_message":"","grpc_status":12}"

I followed the guide in README to install the backend. I'm connecting it to px4 sitl and this is stdout:

[08:25:10|Info ] MAVSDK version: 0.18.0-dirty (mavsdk_impl.cpp:25)
[08:25:10|Debug] New: System ID: 0 Comp ID: 0 (mavsdk_impl.cpp:333)
[08:25:10|Info ] Server set to listen on 0.0.0.0:50051 (grpc_server.cpp:44)
[08:25:10|Info ] Server started (grpc_server.cpp:28)
[08:25:10|Info ] Waiting to discover system... (connection_initiator.h:58)
[08:25:19|Info ] New system on: 127.0.0.1:43329 (udp_connection.cpp:228)
[08:25:19|Debug] Component Autopilot (1) added. (system_impl.cpp:400)
[08:25:19|Debug] Discovered 1 component(s) (UUID: 5283920058631409231) (system_impl.cpp:563)
[08:25:19|Info ] System discovered [UUID: 5283920058631409231] (connection_initiator.h:62)

I think the server is connecting with the sim but there seems to be a disconnect between the python messages and the server's?

If you have any idea how to go about this, troubleshoot, it will be greatly appreciated.
Best

from mavsdk-python.

JonasVautherin avatar JonasVautherin commented on August 18, 2024

Is the backend going to be installed pip?

Yes, it will, and those two versions will match :-).

I think the server is connecting with the sim but there seems to be a disconnect between the python messages and the server's?

Exactly, because of the renaming last week. I'll try to fix that during this week, but in the meantime you should try with pip3 install mavdsk ;-).

One thing to note, though (and I will update the examples as well): with the pip-installed MAVSDK, you need to start the backend manually, with start_mavlink(). So for instance, add the following just after this line:

from mavsdk import start_mavlink

start_mavlink()

After running that command, you can see on the list of processes (e.g. running top or htop) that mavsdk_server is running. And it stops when the python example stops.

Does that help?

from mavsdk-python.

JonasVautherin avatar JonasVautherin commented on August 18, 2024

Great! Serial port should work as well, indeed!

from mavsdk-python.

giovanidiniz avatar giovanidiniz commented on August 18, 2024

Sweet!
Thanks so much. I'm closing this

from mavsdk-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.