ezWheelSAS / swd_ros2_controllers

ROS2 nodes to control motors powered by the ez-Wheel Safety Wheel Drive (SWD®) technology.

Home Page:https://www.ez-wheel.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

launch of swd_ros2_controllers is failed.

suguruhamada1003910 opened this issue · comments

I executed launch file but it fails.
I already created swd_right_config.ini and swd_right_config.ini in /opt/ezw/usr/etc/ezw-smc-core.
How should I do?

swd_sk@c-latitude-7280-076:~$ ros2 launch swd_ros2_controllers swd_diff_drive_controller.launch.py
[INFO] [launch]: All log files can be found below /home/swd_sk/.ros/log/2022-09-27-09-45-13-019784-c-latitude-7280-076-137994
[INFO] [launch]: Default logging verbosity is set to INFO
SYSTEMCTL_dbus.id detected
[INFO] [swd_diff_drive_controller-1]: process started with pid [137996]
[swd_diff_drive_controller-1] [INFO] [1664239513.222313218] [swd_diff_drive_controller]: publish_odom : 1
[swd_diff_drive_controller-1] [INFO] [1664239513.223064837] [swd_diff_drive_controller]: publish_safety_functions : 1
[swd_diff_drive_controller-1] [INFO] [1664239513.224080247] [swd_diff_drive_controller]: right_config_file : /opt/ezw/usr/etc/ezw-smc-core/swd_right_config.ini
[swd_diff_drive_controller-1] [ERROR] [1664239513.224720244] [swd_diff_drive_controller]: Failed loading right motor's config file </opt/ezw/usr/etc/ezw-smc-core/swd_right_config.ini>, CONTEXT_ID: 0, EZW_ERR: SMCService : Config.init() return error code : 4
[swd_diff_drive_controller-1] terminate called after throwing an instance of 'std::runtime_error'
[swd_diff_drive_controller-1]   what():  Failed loading right motor's config file
[ERROR] [swd_diff_drive_controller-1]: process has died [pid 137996, exit code -6, cmd '/home/swd_sk/ros2_ws/install/swd_ros2_controllers/lib/swd_ros2_controllers/swd_diff_drive_controller --ros-args -r __node:=swd_diff_drive_controller --params-file /tmp/launch_params_hc7ahtlm --params-file /tmp/launch_params_dvjzgtpn --params-file /tmp/launch_params_2_c_khby --params-file /tmp/launch_params_g3q8lvx9 --params-file /tmp/launch_params_8t6cl0e9 --params-file /tmp/launch_params_s1cxd72o --params-file /tmp/launch_params_k5cny30d --params-file /tmp/launch_params_ejqclq26 --params-file /tmp/launch_params_xvup8i31 --params-file /tmp/launch_params_ncp6_wko --params-file /tmp/launch_params_nx6fbf6u --params-file /tmp/launch_params_8f_o0j12 --params-file /tmp/launch_params_7z3n6f54 --params-file /tmp/launch_params__zv06ea7 --params-file /tmp/launch_params_u_34vg7o --params-file /tmp/launch_params_7ua614qs'].

swd_sk@c-latitude-7280-076:/opt/ezw/usr/etc/ezw-smc-core$ ls
configuration.json  drive_config.ini  swd_left_config.ini  swd_right_config.ini

"configuration.json" file was invalid.
The file should be copied from /opt/ezw/usr/etc/ezw-smc-core/configuration.json to /opt/ezw/data

sudo cp /opt/ezw/usr/etc/ezw-smc-core/configuration.json /opt/ezw/data