Error: User configuration file not found
2333 3 2020-6-2
Uploading and Loding Picture ...(0/1)
o(^-^)o
kjhardrict
lvl.2

United States
Offline

’m trying to get my initial DJI ROS workspace up and running using Ubuntu 18.04 and ROS Melodic. Everything compiles correctly in terms of cmake and catkin_make after changing some dependencies. However, I am having trouble running the node that the documentation is saying to run to see if the nodes are working. When I try to launch the node, I get the following output. It says the user configuration file is not found. Where is the code looking to find a user configuration file? Is this the UserConfig.txt file with the app ID and app key information? If so, where should I place this file within my ROS workspace?


kjhardrict@ubuntu:~/deuce_ws$ roslaunch dji_osdk_ros dji_sdk_node.launch
... logging to /home/kjhardrict/.ros/log/0d0b55f6-a519-11ea-8cff-000c2982f0af/roslaunch-ubuntu-17065.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server ubuntu:46423

SUMMARY
========

PARAMETERS
* /dji_sdk/acm_name: /dev/ttyACM0
* /dji_sdk/align_time: False
* /dji_sdk/app_id: 1089099
* /dji_sdk/app_version: 1
* /dji_sdk/baud_rate: 230400
* /dji_sdk/dxc: False
* /dji_sdk/enc_key: a263fdc78e88cca16...
* /dji_sdk/serial_name: /dev/ttyUSB0
* /dji_sdk/use_broadcast: False
* /rosdistro: melodic
* /rosversion: 1.14.5

NODES
  /
    dji_sdk (dji_osdk_ros/dji_sdk_node)

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

setting /run_id to 0d0b55f6-a519-11ea-8cff-000c2982f0af
process[rosout-1]: started with pid [17086]
started core service [/rosout]
process[dji_sdk-2]: started with pid [17093]
[ INFO] [1591133760.758911741]: Advanced Sensing is Enabled on M210.
terminate called after throwing an instance of 'std::runtime_error'
  what():  User configuration file not found
[dji_sdk-2] process has died [pid 17093, exit code -6, cmd /home/kjhardrict/deuce_ws/devel/lib/dji_osdk_ros/dji_sdk_node __name:=dji_sdk __log:=/home/kjhardrict/.ros/log/0d0b55f6-a519-11ea-8cff-000c2982f0af/dji_sdk-2.log].
log file: /home/kjhardrict/.ros/log/0d0b55f6-a519-11ea-8cff-000c2982f0af/dji_sdk-2*.log
^X^C[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done

2020-6-2
Use props
xiao long
lvl.2

Hong Kong
Offline

The content and location of this configuration file are mentioned in the official documents.
https://developer.dji.com/onboar ... run-the-sample.html

Supplemental Information
Fill the onboard-sdk/sample/platform/linux/common/UserConfig.txt:
app_id:          //Developer ID
app_key:         //App Key
device:          //Serial port number
bauderate:       //Serial baud rate
acm_port:        //ACM port number

If you use the dji_sdk_node version 3.8.0, you need to place the UserConfig.txt which in the OSDK package to the specified path:
If you use the command rosrun, theUserConfig.txt file needs to be placed to the current running directory;
If you use the command roslaunch, theUserConfig.txt file needs to be placed to the /home/{user}/. Ros.
2020-6-3
Use props
kjhardrict
lvl.2

United States
Offline

xiao long Posted at 6-3 00:24
The content and location of this configuration file are mentioned in the official documents.
https://developer.dji.com/onboard-sdk/documentation/quickstart/run-the-sample.html

Hi, thank you for your reply. I am using OSDK 4.0.0 and have the UserConfig.txt file filled in and in the exact location you mentioned, but it still cannot seem to find it when I use roslaunch

*EDIT*

I still had to also place the UserCong.txt file in the .ros directory

2020-6-4
Use props
xiao long
lvl.2

Hong Kong
Offline

Try this command:
find ~/.ros -name "UserConfig.txt"  
cat ~/.ros/UserConfig.txt

In addition, the version recommended by DJI is Ubuntu 160.4 + ROS kinetic, Ubuntu 18.04 and ROS Melodic may have some incompatibility problems.
2020-6-5
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules