Closed Jai-GAY closed 9 months ago
Working on it, thanks for the note.
thank you. 2.0.1 installation is okay for both Ubuntu 20.04 and 22.04. but server 2.2.0 behavior is not working with a serial port. 1.4.9 with server 1.4.17 is okay.
Arducopter v4.2.3
$ /usr/local/lib/python3.10/dist-packages/mavsdk/bin/mavsdk_server serial:///dev/ttyAMA1:921600 [02:56:13|Info ] MAVSDK version: v2.2.0 (mavsdk_impl.cpp:26)
$ /usr/local/lib/python3.10/dist-packages/mavsdk/bin/mavsdk_server serial:///dev/ttyAMA1:921600 [02:59:37|Info ] MAVSDK version: v1.4.17 (mavsdk_impl.cpp:20) [02:59:37|Info ] Waiting to discover system on serial:///dev/ttyAMA1:921600... (connection_initiator.h:20) [02:59:37|Debug] New: System ID: 42 Comp ID: 190 (mavsdk_impl.cpp:496) [02:59:37|Debug] Component Unsupported component (190) added. (system_impl.cpp:377) [02:59:37|Debug] Discovered 1 component(s) (system_impl.cpp:578) [02:59:37|Info ] System discovered (connection_initiator.h:63) [02:59:37|Info ] Server started (grpc_server.cpp:53) [02:59:37|Info ] Server set to listen on 0.0.0.0:50051 (grpc_server.cpp:54) [02:59:37|Debug] New: System ID: 1 Comp ID: 1 (mavsdk_impl.cpp:496) [02:59:37|Debug] Component Autopilot (1) added. (system_impl.cpp:377) [02:59:37|Debug] Component Camera 1 (100) added. (system_impl.cpp:377) [02:59:37|Debug] Component Unsupported component (250) added. (system_impl.cpp:377) [02:59:37|Warn ] Vehicle type changed (new type: 13, old type: 0) (system_impl.cpp:225) [02:59:37|Debug]
Oh, what architecture is that?
Oh, what architecture is that?
Pi 4B 4GB RAM Ubuntu 22.04 64-bit. Arducopter 4.2.3 with CubeOrange or CubeBlack flight controller Unit.
Thanks @Jai-GAY. I will try to reproduce it.
$ /usr/local/lib/python3.10/dist-packages/mavsdk/bin/mavsdk_server serial:///dev/ttyAMA1:921600 [02:56:13|Info ] MAVSDK version: v2.2.0 (mavsdk_impl.cpp:26)
Does it crash or just stop?
Does it crash or just stop?
did not crash, just exited and stopped.
Ok, so it might likely be the same as #654.
Ok, so it might likely be the same as #654.
No, I do not see the second line printout. His timing was quite fast from the first to the second printout. Mine, I waited for a few minutes, but I did not see the second line printout, which had already exited.
[09:38:36|Info ] Waiting to discover system on serial:///dev/serial0:921600... (connection_initiator.h:20) [09:38:36|Debug] New system ID: 1 Comp ID: 1 (mavsdk_impl.cpp:737) [09:38:36|Debug] Component Autopilot (1) added. (system_impl.cpp:388) [09:38:36|Debug] MAVLink: info: GCS connection regained (system_impl.cpp:256)
here is the pip3 list, not sure of any help.
Package Version
action-msgs 1.2.1 actionlib-msgs 4.2.3 aiogrpc 1.8 ament-black 0.2.4 ament-cmake-test 1.3.7 ament-copyright 0.12.10 ament-cppcheck 0.12.10 ament-cpplint 0.12.10 ament-flake8 0.12.10 ament-index-python 1.4.0 ament-lint 0.12.10 ament-lint-cmake 0.12.10 ament-package 0.14.0 ament-pep257 0.12.10 ament-uncrustify 0.12.10 ament-xmllint 0.12.10 apturl 0.5.2 argcomplete 1.8.1 attrs 21.2.0 av 11.0.0 Babel 2.8.0 bcrypt 3.2.0 beautifulsoup4 4.10.0 black 21.12b0 blinker 1.4 breezy 3.2.1 Brlapi 0.8.3 builtin-interfaces 1.2.1 catkin-pkg 1.0.0 catkin-pkg-modules 1.0.0 certifi 2020.6.20 chardet 4.0.0 click 8.0.3 colcon-argcomplete 0.3.3 colcon-bash 0.5.0 colcon-cd 0.1.1 colcon-cmake 0.2.28 colcon-common-extensions 0.3.0 colcon-core 0.15.1 colcon-defaults 0.2.8 colcon-devtools 0.2.4 colcon-installed-package-information 0.1.0 colcon-library-path 0.2.1 colcon-metadata 0.2.5 colcon-notification 0.2.15 colcon-output 0.2.13 colcon-override-check 0.0.1 colcon-package-information 0.3.3 colcon-package-selection 0.2.10 colcon-parallel-executor 0.3.0 colcon-pkg-config 0.1.0 colcon-powershell 0.4.0 colcon-python-setup-py 0.2.8 colcon-recursive-crawl 0.2.3 colcon-ros 0.4.1 colcon-test-result 0.3.8 colcon-zsh 0.5.0 colorama 0.4.4 command-not-found 0.3 composition-interfaces 1.2.1 configobj 5.0.6 cov-core 1.15.0 coverage 6.2 cryptography 3.4.8 cupshelpers 1.0 cv-3 1.2.0 dbus-python 1.2.18 defer 1.0.6 Deprecated 1.2.13 diagnostic-msgs 4.2.3 diagnostic-updater 3.1.2 distlib 0.3.4 distro 1.7.0 distro-info 1.1+ubuntu0.2 docutils 0.17.1 domain-coordinator 0.10.0 dulwich 0.20.31 duplicity 0.8.21 empy 3.3.4 example-interfaces 0.9.3 fastbencode 0.0.5 fasteners 0.14.1 fastimport 0.9.14 flake8 4.0.1 future 0.18.2 geographic-msgs 1.0.5 geographiclib 1.52 geometry-msgs 4.2.3 geopy 2.2.0 gpg 1.16.0 grpcio 1.60.0 html5lib 1.1 httplib2 0.20.2 idna 3.3 importlib-metadata 4.6.4 iniconfig 1.1.1 jeepney 0.7.1 Jinja2 3.0.3 keyring 23.5.0 language-selector 0.1 lark 1.1.1 launch 1.0.4 launch-pytest 1.0.4 launch-ros 0.19.7 launch-testing 1.0.4 launch-testing-ros 0.19.7 launch-xml 1.0.4 launch-yaml 1.0.4 launchpadlib 1.10.16 lazr.restfulclient 0.14.4 lazr.uri 1.0.6 lifecycle-msgs 1.2.1 lockfile 0.12.2 louis 3.20.0 lxml 4.8.0 macaroonbakery 1.3.1 Mako 1.1.3 Markdown 3.3.6 MarkupSafe 2.0.1 MAVProxy 1.8.69 mavros 2.6.0 mavros-msgs 2.6.0 mavsdk 2.0.1 mccabe 0.6.1 meson 0.64.0 message-filters 4.3.3 micro-ros-msgs 1.0.0 monotonic 1.6 more-itertools 8.10.0 mypy-extensions 0.4.3 nav-msgs 4.2.3 netifaces 0.11.0 nose2 0.9.2 notify2 0.3 numpy 1.21.5 oauthlib 3.2.0 olefile 0.46 opencv-python 4.9.0.80 osrf-pycommon 2.0.2 packaging 21.3 paramiko 2.9.3 pathspec 0.9.0 patiencediff 0.2.1 pexpect 4.8.0 picamera2 0.3.16 pidng 4.0.9 piexif 1.1.3 Pillow 9.0.1 pip 23.3.2 platformdirs 2.5.1 pluggy 0.13.0 ply 3.11 protobuf 3.12.4 psutil 5.9.0 ptyprocess 0.7.0 py 1.10.0 pycairo 1.20.1 pycodestyle 2.8.0 pycups 2.0.1 pydocstyle 6.1.1 pyflakes 2.4.0 PyGithub 1.55 Pygments 2.11.2 PyGObject 3.42.1 PyJWT 2.3.0 pymacaroons 0.13.0 pymavlink 2.4.41 PyNaCl 1.5.0 pyparsing 2.4.7 pyRFC3339 1.1 pyserial 3.5 pytest 6.2.5 pytest-cov 3.0.0 python-apt 2.4.0+ubuntu2 python-dateutil 2.8.1 python-debian 0.1.43+ubuntu1.1 python-gitlab 2.10.1 python-prctl 1.8.1 pytz 2022.1 pyxdg 0.27 PyYAML 5.4.1 rcl-interfaces 1.2.1 rclpy 3.3.11 rcutils 5.1.4 reportlab 3.6.8 requests 2.25.1 requests-toolbelt 0.9.1 rmw-dds-common 1.6.0 roman 3.3 ros2action 0.18.8 ros2bag 0.15.9 ros2cli 0.18.8 ros2component 0.18.8 ros2doctor 0.18.8 ros2interface 0.18.8 ros2launch 0.19.7 ros2lifecycle 0.18.8 ros2multicast 0.18.8 ros2node 0.18.8 ros2param 0.18.8 ros2pkg 0.18.8 ros2run 0.18.8 ros2service 0.18.8 ros2topic 0.18.8 rosbag2-interfaces 0.15.9 rosbag2-py 0.15.9 rosdep 0.21.0 rosdistro 0.9.0 rosdistro-modules 0.9.0 rosgraph-msgs 1.2.1 rosidl-adapter 3.1.5 rosidl-cli 3.1.5 rosidl-cmake 3.1.5 rosidl-generator-c 3.1.5 rosidl-generator-cpp 3.1.5 rosidl-generator-py 0.14.4 rosidl-parser 3.1.5 rosidl-runtime-py 0.9.3 rosidl-typesupport-c 2.0.1 rosidl-typesupport-cpp 2.0.1 rosidl-typesupport-fastrtps-c 2.2.2 rosidl-typesupport-fastrtps-cpp 2.2.2 rosidl-typesupport-introspection-c 3.1.5 rosidl-typesupport-introspection-cpp 3.1.5 rospkg 1.5.0 rospkg-modules 1.5.0 rpyutils 0.2.1 SecretStorage 3.3.1 sensor-msgs 4.2.3 setuptools 58.2.0 shape-msgs 4.2.3 simplejpeg 1.7.2 six 1.16.0 snowballstemmer 2.2.0 soupsieve 2.3.1 sros2 0.10.4 ssh-import-id 5.11 statistics-msgs 1.2.1 std-msgs 4.2.3 std-srvs 4.2.3 stereo-msgs 4.2.3 systemd-python 234 tf2-geometry-msgs 0.25.5 tf2-kdl 0.25.5 tf2-msgs 0.25.5 tf2-py 0.25.5 tf2-ros-py 0.25.5 tf2-tools 0.25.5 toml 0.10.2 tomli 1.2.2 trajectory-msgs 4.2.3 typing-extensions 3.10.0.2 ubuntu-advantage-tools 8001 ubuntu-drivers-common 0.0.0 ufw 0.36.1 unattended-upgrades 0.1 unidiff 0.5.5 unique-identifier-msgs 2.2.1 urllib3 1.26.5 uvloop 0.17.0 v4l2-python3 0.3.2 vcstool 0.3.0 visualization-msgs 4.2.3 wadllib 1.3.6 webencodings 0.5.1 wheel 0.37.1 wrapt 1.13.3 xdg 5 xkit 0.0.0 zipp 1.0.0
Let's see if https://github.com/mavlink/MAVSDK/pull/2223 fixes it. Otherwise, we'll have to do more debugging.
thank you for the hard work, appreciated, version 2.1.0 basic test work seamlessly like Pi4B and Jetson OrinNX
Name: mavsdk Version: 2.1.0 Summary: Python wrapper for MAVSDK Home-page: https://github.com/mavlink/MAVSDK-Python Author: Author-email: License: UNKNOWN Location: /home/orinnx-1of3/.local/lib/python3.9/site-packages Requires: aiogrpc, grpcio, protobuf Required-by: System server b4 System server done Orin NX Waiting for drone to connect... -- Connected to drone! Version: [flight_sw_major: 4, flight_sw_minor: 2, flight_sw_patch: 3, flight_sw_vendor_major: 56, flight_sw_vendor_minor: 52, flight_sw_vendor_patch: 97, os_sw_major: 0, os_sw_minor: 0, os_sw_patch: 0, flight_sw_git_hash: 376130633 , os_sw_git_hash: 663466323230383 , flight_sw_version_type: RELEASE] -- Arming -- Taking off -- Landing Battery: 10000.0 Battery_v: 15.947000503540039 Battery: 10000.0 Battery_v: 15.94800090789795 Battery: 10000.0 Battery_v: 15.960000991821289 print_status_text CancelledError Battery: 10000.0 Battery_v: 15.91300106048584 Battery: 10000.0 Battery_v: 15.929000854492188 Battery: 10000.0 Battery_v: 15.908000946044922 print_battery CancelledError
Hi
$ pip3 install mavsdk==2.0.0 --upgrade $ sudo pip3 install mavsdk==2.0.0 --upgrade pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10) pip 23.3.2 from /usr/local/lib/python3.10/dist-packages/pip (python 3.10)
Is there anyone successfully upgraded it to 2.0.0? I have tried upgrading the pip, the result is the same.
ERROR: Could not find a version that satisfies the requirement mavsdk==2.0.0 (from versions: 0.5.2, 0.7.0, 0.8.0, 0.8.1, 0.8.2, 0.9.0, 0.9.1, 0.10.0, 0.11.0, 0.12.0, 0.13.4, 0.14.0, 0.15.0, 0.16.0, 0.16.1, 0.17.0, 0.18.0, 0.19.0, 0.20.0, 0.21.0, 0.22.0, 0.22.1, 0.22.2, 0.22.3, 0.23.0, 1.0.0, 1.2.0, 1.3.0, 1.4.0, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.4.5, 1.4.6, 1.4.7, 1.4.8, 1.4.9) ERROR: No matching distribution found for mavsdk==2.0.0
$ sudo lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.6 LTS Release: 20.04 Codename: focal
No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.3 LTS Release: 22.04 Codename: jammy