dji-sdk / Onboard-SDK

DJI Onboard SDK Official Repository
https://github.com/dji-sdk/Onboard-SDK
Other
909 stars 634 forks source link

iCrest 2 (Xavier NX) with M300 #917

Closed AreteQin closed 2 weeks ago

AreteQin commented 1 year ago

Hi there,

I got the following error on running roslaunch dji_osdk_ros dji_vehicle_node.launch

NODES
  /
    vehicle_node (dji_osdk_ros/dji_vehicle_node)

auto-starting new master
process[master]: started with pid [9416]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to 0cdfceac-e8fc-11ed-ac2a-48b02d7af115
process[rosout-1]: started with pid [9429]
started core service [/rosout]
process[vehicle_node-2]: started with pid [9432]
EnableAd: 1
[3708266.291]ERRORLOG/1 @ initVehicle, L137: Failed to initialize Linker channel
Init Vehicle Failed, TERMINATE!
[vehicle_node-2] process has died [pid 9432, exit code 1, cmd /home/qin/m300_ws/devel/lib/dji_osdk_ros/dji_vehicle_node __name:=vehicle_node __log:=/home/qin/.ros/log/0cdfceac-e8fc-11ed-ac2a-48b02d7af115/vehicle_node-2.log].
log file: /home/qin/.ros/log/0cdfceac-e8fc-11ed-ac2a-48b02d7af115/vehicle_node-2*.log

Setup

iCrest 2 (Xavier NX)
M300
OSDK 4.10

PARAMETERS
 * /rosdistro: melodic
 * /rosversion: 1.14.13
 * /vehicle_node/acm_name: /dev/ttyACM0
 * /vehicle_node/align_time: False
 * /vehicle_node/app_id: *********
 * /vehicle_node/app_version: 1
 * /vehicle_node/baud_rate: 1000000
 * /vehicle_node/enc_key: *************
 * /vehicle_node/serial_name: /dev/ttyTHS1
 * /vehicle_node/use_broadcast: False

I tried to solve it by adding DJIDecices.rules file into /etc/udev/rules.d, but it still gave me the same error.

I checked usb connection via ls -l /dev | grep ttyACM*, and it gave me the following: crw-rw---- 1 root dialout 166, 0 May 2 10:49 ttyACM0

iCrest 2 has already been integrated with dual USB cable as shown below. So, I think the hardware and connection is OK. GetImage

I strongly appreciate any help in advance.

lcyyyao commented 2 weeks ago

Have you solved it?