roslaunch激活失败,我该怎么办?

问题描述 投票:0回答:1

我试图通过键入启动sdk软件包

roslaunch dji_sdk sdk.launch

但是每次我收到此错误:

... logging to /home/dji/.ros/log/b31d5e94-fec0-11e9-9835-74da38ebc18f/roslaunch-manifold2-18825.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://manifold2:41911/

SUMMARY

PARAMETERS

/dji_sdk/align_time: False
/dji_sdk/app_id: 1079440
/dji_sdk/app_version: 1
/dji_sdk/baud_rate: 921600
/dji_sdk/enc_key: 39d353a8e9ad01b6c...
/dji_sdk/serial_name: /dev/ttyUSB0
/dji_sdk/use_broadcast: False
/rosdistro: kinetic
/rosversion: 1.12.13
NODES
/
dji_sdk (dji_sdk/dji_sdk_node)

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

setting /run_id to b31d5e94-fec0-11e9-9835-74da38ebc18f
process[rosout-1]: started with pid [18848]
started core service [/rosout]
process[dji_sdk-2]: started with pid [18856]

STATUS/1 @ init, L56: Attempting to open device /dev/ttyUSB0 with baudrate 921600...

STATUS/1 @ init, L66: ...Serial started successfully.

ERRORLOG/1 @ getDroneVersion, L1503: Drone version not obtained! Please do not proceed.
Possible reasons:
Serial port connection:

SDK is not enabled, please check DJI Assistant2 -> SDK -> [v] Enable API Control.
Baudrate is not correct, please double-check from DJI Assistant2 -> SDK -> baudrate.
TX and RX pins are inverted.
Serial port is occupied by another program.
Permission required. Please do 'sudo usermod -a -G dialout $USER' (you do not need to replace $USER with your username). Then logout and login again
ERRORLOG/1 @ activate, L1387: Unable to initialize some vehicle components![ERROR] [1572843926.785053218]: drone activation error
[ERROR] [1572843926.785190956]: Vehicle initialization failed
^C[dji_sdk-2] killing on exit
[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done

这是我激活无人机所遵循的步骤:

source devel/setup.bash
catkin_make
rosed dji_sdk sdk.launch

我在其中编辑波特率/应用程序ID /编码键/和序列号的地方。

app_id:1079440波特率:921600序列名:/ dev / ttyUSB0enc_key:39d353a8e9ad01b6c659111904bae57ebb138785aa5159699383f28da3f56563

并且我继续执行以下命令:

roslaunch dji_sdk sdk.launch

出现错误的地方。

我正在使用USB-TTL电缆将歧管2-c与M210 RTK V2连接,在键入任何代码之前,我也首先获得了许可:

usermod -a -G dialout $USER

然后注销并登录然后我输入:

sudo chmod 666 /dev/ttyUSB0

读取并授予对串行端口的许可。

分别放置TX(绿线)和Rx(白线)和地线(黑线)。

所以现在我该怎么办?

sdk ros launch dji-sdk manifold
1个回答
0
投票
  1. 某些USB-TTL电缆不支持921600波特率,建议您使用FT232R USB-TTL电缆
  2. 您需要在DJI Assistant 2中启用SDK并设置无人机buadrate 921600enter image description here
© www.soinside.com 2019 - 2024. All rights reserved.