A collection of ROS and non-ROS (Python) code that converts data from vision-based system (external localization system like fiducial tags, VIO, SLAM, or depth image) to corresponding mavros topics or MAVLink messages that can be consumed by a flight control stack (with working and tested examples for ArduPilot).
Hey @thien94 , I am getting the following error when I run only the T265_to_mavlink.py
mavros_ws/src/vision_to_mavros/scripts$ python3 t265_to_mavlink.py
INFO: Using default connection_string /dev/ttyACM0
INFO: Using default connection_baudrate 115200
INFO: Using default vision_position_estimate_msg_hz 30.0
INFO: Using default vision_position_delta_msg_hz 30.0
INFO: Using default vision_speed_estimate_msg_hz 30.0
INFO: Using camera position offset: Disabled
INFO: Using compass: Disabled
INFO: Using default scale factor 1.0
INFO: Using default camera orientation 0
INFO: Starting Vehicle communications
Device /dev/ttyACM0 is dead
Device /dev/ttyACM0 is dead
INFO: Connecting to camera...
Traceback (most recent call last):
File "t265_to_mavlink.py", line 522, in
realsense_connect()
File "t265_to_mavlink.py", line 447, in realsense_connect
device = cfg.resolve(pipe).get_device()
RuntimeError: No device connected
Alarm clock
Even when the USB ports are connected like the ACM0 with the correct baudrate, I am still getting the same error. Even this is same with d4xx_to_mavlink.py. But initially the code was working fine and I did flight test for position hold, but now the same code without any modifications is not running. But when I do realsense_viewer I am able to view the feed of the both the D435I and T265 cameras, I tried reconnecting individual camera, both but nothing helped. i even tried increasing the timer, but it still didn't help. Can you please help me solve this issue.
Hey @thien94 , I am getting the following error when I run only the T265_to_mavlink.py
mavros_ws/src/vision_to_mavros/scripts$ python3 t265_to_mavlink.py INFO: Using default connection_string /dev/ttyACM0 INFO: Using default connection_baudrate 115200 INFO: Using default vision_position_estimate_msg_hz 30.0 INFO: Using default vision_position_delta_msg_hz 30.0 INFO: Using default vision_speed_estimate_msg_hz 30.0 INFO: Using camera position offset: Disabled INFO: Using compass: Disabled INFO: Using default scale factor 1.0 INFO: Using default camera orientation 0 INFO: Starting Vehicle communications Device /dev/ttyACM0 is dead Device /dev/ttyACM0 is dead INFO: Connecting to camera... Traceback (most recent call last): File "t265_to_mavlink.py", line 522, in
realsense_connect()
File "t265_to_mavlink.py", line 447, in realsense_connect
device = cfg.resolve(pipe).get_device()
RuntimeError: No device connected
Alarm clock
Even when the USB ports are connected like the ACM0 with the correct baudrate, I am still getting the same error. Even this is same with d4xx_to_mavlink.py. But initially the code was working fine and I did flight test for position hold, but now the same code without any modifications is not running. But when I do realsense_viewer I am able to view the feed of the both the D435I and T265 cameras, I tried reconnecting individual camera, both but nothing helped. i even tried increasing the timer, but it still didn't help. Can you please help me solve this issue.
Hardware: Raspberry PI OS: Ubuntu 20.04
Thanks in advance.