Comments (6)
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.
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.
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.
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.
Great! Serial port should work as well, indeed!
from mavsdk-python.
Sweet!
Thanks so much. I'm closing this
from mavsdk-python.
Related Issues (20)
- drone.info.get_version() INFORMATION_NOT_RECEIVED_YET HOT 8
- FILE_DOES_NOT_EXIST on calling the drone.ftp.list_directory() to fetch internal directories file HOT 13
- The use of drone.offboard.set_position_ned HOT 9
- Unable to upload rally_items through MAVSDK HOT 10
- Error when uploading mission: INVALID_PARAM1 HOT 6
- `aiogrpc` RuntimeError HOT 35
- Running missions in ArduPilot HOT 12
- How to use mavsdk-python to takeoff without GPS HOT 4
- How do I use `telemetry_server` correctly? HOT 4
- Analyzing log files or Distance travelled data from mavsdk python HOT 5
- Geofence crashes with the only information being "Error" HOT 1
- connectivity HOT 5
- Support custom COMMAND_LONG listeners and be able to ACK HOT 6
- can't connect to QGC via UDP connection using mavsdk HOT 3
- Get HEARTBEAT message from MAVSDK HOT 5
- How to use Mavsdk to call Led_control to control LED lights? HOT 2
- MAVSDK server not connecting with JMAVSIM - Windows WSL HOT 2
- How can I set flight mode - manual mode? HOT 1
- Altitude error while doing swarming using mavsdk-python ? HOT 2
- RuntimeError: Task pending got Future attached to a different loop during Offboard control with FastAPI and MAVSDK HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mavsdk-python.