This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[ERROR]: mmWaveQuickConfig: Failed to call service mmWaveCLI

Part Number: IWR6843AOPEVM

After running the command: roslaunch ti_mmwave_rospkg 6843AOP_multi_3d_0.launch
Besides that the Rviz opens, but does not show the data points, I get the following error:

 mmWaveQuickConfig: Configuring mmWave device using config file: /home/teo/catkin_ws/src/ti_mmwave_rospkg/cfg/6843AOP_3d.cfg
waitForService: Service [/mmWaveCommSrv/mmWaveCLI] has not been advertised, waiting...
Initializing nodelet with 12 worker threads.
mmWaveCommSrv: command_port =
mmWaveCommSrv: command_rate = 61184
mmWaveDataHdl: data_port = /dev/ttyUSB0

mmWaveDataHdl: data_rate = 921600
mmWaveDataHdl: max_allowed_elevation_angle_deg = 90

...

mmWaveQuickConfig: Failed to call service mmWaveCLI
sensorStop


This is my roslaunch file, I changed the ports(that also worked on demo Vizualizer):

<!--
  This file will launch rViz along with the mmWave sensor node and configure a TI mmWave 6843 sensor using a 3D config
 -->

<launch>

  <!-- Input arguments -->
  <arg name="device" value="6843" doc="TI mmWave sensor device type [1443, 1642, 6843]"/>
  <arg name="config" value="3d" doc="TI mmWave sensor device configuration [3d_best_range_res (not supported by 1642 EVM), 2d_best_range_res]"/>
  <arg name="max_allowed_elevation_angle_deg" default="90" doc="Maximum allowed elevation angle in degrees for detected object data [0 > value >= 90]}"/>
  <arg name="max_allowed_azimuth_angle_deg" default="90" doc="Maximum allowed azimuth angle in degrees for detected object data [0 > value >= 90]}"/>

  <!-- mmWave_Manager node -->
  <node pkg="ti_mmwave_rospkg" type="ti_mmwave_rospkg" name="ti_mmwave" ns="radar_0" output="screen">
    <param name="command_port" value="/dev/ttyUSB1"/> <!-- FIX ACM0 -> USB1 -->
    <param name="command_rate" value="115200"   />
    <param name="data_port" value="/dev/ttyUSB0"  /> <!-- FIX ACM1 -> USB0 -->
    <param name="data_rate" value="921600"   />
    <param name="max_allowed_elevation_angle_deg" value="$(arg max_allowed_elevation_angle_deg)"   />
    <param name="max_allowed_azimuth_angle_deg" value="$(arg max_allowed_azimuth_angle_deg)"   />
    <param name="frame_id" value="/ti_mmwave_0"/>
    <remap from="/ti_mmwave/radar_scan_pcl" to="/ti_mmwave/radar_scan_pcl_0"/>
  </node>

  <!-- mmWaveQuickConfig node (terminates after configuring mmWave sensor) -->
  <node pkg="ti_mmwave_rospkg" type="mmWaveQuickConfig" name="ti_mmwave_config" ns="radar_0" args="$(find ti_mmwave_rospkg)/cfg/6843AOP_3d.cfg" output="screen" />

  <node pkg="tf" type="static_transform_publisher" name="radar_baselink_0" args="0 0 0 0 0 0 ti_mmwave_pcl ti_mmwave_0 100"/>

  <node pkg="rviz" type="rviz" name="rviz" args="-d $(find ti_mmwave_rospkg)/launch/rviz/ti_mmwave_multi.rviz"/>
</launch>

And the 6843AOP_3d.cfg file:

% ***************************************************************
% Created for SDK ver:03.02
% Created using Visualizer ver:3.2.0.0_AOP
% Frequency:60
% Platform:xWR68xx_AOP
% Scene Classifier:best_range_res
% Azimuth Resolution(deg):30 + 30
% Range Resolution(m):0.047
% Maximum unambiguous Range(m):9.02
% Maximum Radial Velocity(m/s):4.99
% Radial velocity resolution(m/s):0.63
% Frame Duration(msec):33.333
% Range Detection Threshold (dB):15
% Doppler Detection Threshold (dB):15
% Range Peak Grouping:enabled
% Doppler Peak Grouping:enabled
% Static clutter removal:disabled
% Angle of Arrival FoV: Full FoV
% Range FoV: Full FoV
% Doppler FoV: Full FoV
% ***************************************************************
sensorStop
flushCfg
dfeDataOutputMode 1
channelCfg 15 7 0
adcCfg 2 1
adcbufCfg -1 0 1 1 1
profileCfg 0 60 43 7 40 0 0 100 1 224 7000 0 0 30
chirpCfg 0 0 0 0 0 0 0 1
chirpCfg 1 1 0 0 0 0 0 2
chirpCfg 2 2 0 0 0 0 0 4
frameCfg 0 2 16 0 33.333 1 0
lowPower 0 0
guiMonitor -1 1 0 0 0 0 0
cfarCfg -1 0 2 8 4 3 0 12 0
cfarCfg -1 1 0 4 2 3 1 12 1
multiObjBeamForming -1 1 0.5
clutterRemoval -1 0
calibDcRangeSig -1 0 -5 8 256
extendedMaxVelocity -1 0
lvdsStreamCfg -1 0 0 0
compRangeBiasAndRxChanPhase 0.0 1 0 -1 0 1 0 -1 0 1 0 -1 0 1 0 -1 0 1 0 -1 0 1 0 -1 0
measureRangeBiasAndRxChanPhase 0 1.5 0.2
CQRxSatMonitor 0 3 4 99 0
CQSigImgMonitor 0 111 4
analogMonitor 0 0
aoaFovCfg -1 -90 90 -90 90
cfarFovCfg -1 0 0 8.40
cfarFovCfg -1 1 -5.02 5.02
sensorStart

  • As I have also noticed the command_port is not specified(in the program output), but as you can see it is in the roslaunch file.

  • Hi Teodor,

    I noticed in your error message that the command rate in the error message does not match the command rate in the launch file, nor is the command port filled in the error message. Is your user a member of the dialout group? Also, please do a "ls -l /dev/", do you see both of the USB ports? If you don't see ttyUSB1, then you may have to change your launch file to use the correct port.

  • Thank you for such a quick reply. Command rate is changing each time I run roslaunch.

    Both ports are seen with the command "ls -l /dev". (I also tried to switch them but the effect is the same)

    I think the problem might be that the command_port is not specified(not seen in the console output). Where should I do this, because changing in the roslaunch file does not help.

  • Could you please paste the messages before "mmWaveQuickConfig: Failed to call service mmWaveCLI", you should have seen a message from "mmWaveCommSrv". That message should provide some insight. 

    The command port is already specified in the launch file.  Also try restarting your machine. 

  • Restarted my machine, nothing changed.

    This is the output message:

    setting /run_id to a61ede42-de4a-11ea-be08-40234396a24f
    process[rosout-1]: started with pid [2679]
    started core service [/rosout]
    process[radar_0/ti_mmwave-2]: started with pid [2682]
    process[radar_0/ti_mmwave_config-3]: started with pid [2683]
    process[radar_baselink_0-4]: started with pid [2686]
    process[rviz-5]: started with pid [2690]
    [ INFO] [1597422291.838545803]: mmWaveQuickConfig: Configuring mmWave device using config file: /home/teo/catkin_ws/src/ti_mmwave_rospkg/cfg/6843AOP_3d.cfg
    [ INFO] [1597422291.849067328]: waitForService: Service [/mmWaveCommSrv/mmWaveCLI] has not been advertised, waiting...
    [ INFO] [1597422293.472467145]: Initializing nodelet with 12 worker threads.
    [ INFO] [1597422293.862053327]: mmWaveCommSrv: command_port =
    [ INFO] [1597422293.862140763]: mmWaveCommSrv: command_rate = 0
    [ INFO] [1597422293.872582839]: mmWaveDataHdl: data_port = /dev/ttyUSB0
    [ INFO] [1597422293.872666398]: mmWaveDataHdl: data_rate = 921600
    [ INFO] [1597422293.872740415]: mmWaveDataHdl: max_allowed_elevation_angle_deg = 90
    [ INFO] [1597422293.872797620]: mmWaveDataHdl: max_allowed_azimuth_angle_deg = 90
    [ INFO] [1597422391.865414007]: mmWaveQuickConfig: Ignored blank or comment line: '% ***************************************************************'
    [ INFO] [1597422391.865632964]: mmWaveQuickConfig: Ignored blank or comment line: '% Created for SDK ver:03.02'
    [ INFO] [1597422391.865825208]: mmWaveQuickConfig: Ignored blank or comment line: '% Created using Visualizer ver:3.2.0.0_AOP'
    [ INFO] [1597422391.866009605]: mmWaveQuickConfig: Ignored blank or comment line: '% Frequency:60'
    [ INFO] [1597422391.866200268]: mmWaveQuickConfig: Ignored blank or comment line: '% Platform:xWR68xx_AOP'
    [ INFO] [1597422391.866384865]: mmWaveQuickConfig: Ignored blank or comment line: '% Scene Classifier:best_range_res'
    [ INFO] [1597422391.866579748]: mmWaveQuickConfig: Ignored blank or comment line: '% Azimuth Resolution(deg):30 + 30'
    [ INFO] [1597422391.866767270]: mmWaveQuickConfig: Ignored blank or comment line: '% Range Resolution(m):0.047'
    [ INFO] [1597422391.866960232]: mmWaveQuickConfig: Ignored blank or comment line: '% Maximum unambiguous Range(m):9.02'
    [ INFO] [1597422391.867146257]: mmWaveQuickConfig: Ignored blank or comment line: '% Maximum Radial Velocity(m/s):4.99'
    [ INFO] [1597422391.867336966]: mmWaveQuickConfig: Ignored blank or comment line: '% Radial velocity resolution(m/s):0.63'
    [ INFO] [1597422391.867524628]: mmWaveQuickConfig: Ignored blank or comment line: '% Frame Duration(msec):33.333'
    [ INFO] [1597422391.867722191]: mmWaveQuickConfig: Ignored blank or comment line: '% Range Detection Threshold (dB):15'
    [ INFO] [1597422391.867901280]: mmWaveQuickConfig: Ignored blank or comment line: '% Doppler Detection Threshold (dB):15'
    [ INFO] [1597422391.868104528]: mmWaveQuickConfig: Ignored blank or comment line: '% Range Peak Grouping:enabled'
    [ INFO] [1597422391.868306084]: mmWaveQuickConfig: Ignored blank or comment line: '% Doppler Peak Grouping:enabled'
    [ INFO] [1597422391.868509383]: mmWaveQuickConfig: Ignored blank or comment line: '% Static clutter removal:disabled'
    [ INFO] [1597422391.868680917]: mmWaveQuickConfig: Ignored blank or comment line: '% Angle of Arrival FoV: Full FoV'
    [ INFO] [1597422391.868878937]: mmWaveQuickConfig: Ignored blank or comment line: '% Range FoV: Full FoV'
    [ INFO] [1597422391.869050460]: mmWaveQuickConfig: Ignored blank or comment line: '% Doppler FoV: Full FoV'
    [ INFO] [1597422391.869251442]: mmWaveQuickConfig: Ignored blank or comment line: '% ***************************************************************'
    [ INFO] [1597422391.869591458]: mmWaveQuickConfig: Sending command: 'sensorStop'
    [ERROR] [1597422391.870457989]: mmWaveQuickConfig: Failed to call service mmWaveCLI
    [ERROR] [1597422391.870473073]: sensorStop
    [radar_0/ti_mmwave_config-3] process has died [pid 2683, exit code 1, cmd /home/teo/catkin_ws/devel/lib/ti_mmwave_rospkg/mmWaveQuickConfig /home/teo/catkin_ws/src/ti_mmwave_rospkg/cfg/6843AOP_3d.cfg __nam
    e:=ti_mmwave_config __log:=/home/teo/.ros/log/a61ede42-de4a-11ea-be08-40234396a24f/radar_0-ti_mmwave_config-3.log].
    log file: /home/teo/.ros/log/a61ede42-de4a-11ea-be08-40234396a24f/radar_0-ti_mmwave_config-3*.log

  • There should be some more info immediately after issuing the roslaunch command, like a parameters summary. What version of ROS are you using?

    Are you using the latest Industrial Toolbox version 4.4.1? Your output is not what I expected and seems to be from a different source file which could explain why the port and data rate are not being set correctly. 

  • Actual output:

    started roslaunch server http://teo-G3-3590:38661/

    SUMMARY
    ========

    PARAMETERS
     * /radar_0/ti_mmwave/command_port: /dev/ttyUSB1
     * /radar_0/ti_mmwave/command_rate: 115200
     * /radar_0/ti_mmwave/data_port: /dev/ttyUSB0
     * /radar_0/ti_mmwave/data_rate: 921600
     * /radar_0/ti_mmwave/frame_id: /ti_mmwave_0
     * /radar_0/ti_mmwave/max_allowed_azimuth_angle_deg: 90
     * /radar_0/ti_mmwave/max_allowed_elevation_angle_deg: 90
     * /rosdistro: kinetic
     * /rosversion: 1.12.14

    NODES
      /radar_0/
        ti_mmwave (ti_mmwave_rospkg/ti_mmwave_rospkg)
        ti_mmwave_config (ti_mmwave_rospkg/mmWaveQuickConfig)
      /
        radar_baselink_0 (tf/static_transform_publisher)
        rviz (rviz/rviz)

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

    setting /run_id to a61ede42-de4a-11ea-be08-40234396a24f
    process[rosout-1]: started with pid [2679]
    started core service [/rosout]
    process[radar_0/ti_mmwave-2]: started with pid [2682]
    process[radar_0/ti_mmwave_config-3]: started with pid [2683]
    process[radar_baselink_0-4]: started with pid [2686]
    process[rviz-5]: started with pid [2690]
    [ INFO] [1597422291.838545803]: mmWaveQuickConfig: Configuring mmWave device using config file: /home/teo/catkin_ws/src/ti_mmwave_rospkg/cfg/6843AOP_3d.cfg
    [ INFO] [1597422291.849067328]: waitForService: Service [/mmWaveCommSrv/mmWaveCLI] has not been advertised, waiting...
    [ INFO] [1597422293.472467145]: Initializing nodelet with 12 worker threads.
    [ INFO] [1597422293.862053327]: mmWaveCommSrv: command_port =
    [ INFO] [1597422293.862140763]: mmWaveCommSrv: command_rate = 0
    [ INFO] [1597422293.872582839]: mmWaveDataHdl: data_port = /dev/ttyUSB0
    [ INFO] [1597422293.872666398]: mmWaveDataHdl: data_rate = 921600
    [ INFO] [1597422293.872740415]: mmWaveDataHdl: max_allowed_elevation_angle_deg = 90
    [ INFO] [1597422293.872797620]: mmWaveDataHdl: max_allowed_azimuth_angle_deg = 90
    [ INFO] [1597422391.865414007]: mmWaveQuickConfig: Ignored blank or comment line: '% ***************************************************************'
    [ INFO] [1597422391.865632964]: mmWaveQuickConfig: Ignored blank or comment line: '% Created for SDK ver:03.02'
    [ INFO] [1597422391.865825208]: mmWaveQuickConfig: Ignored blank or comment line: '% Created using Visualizer ver:3.2.0.0_AOP'
    [ INFO] [1597422391.866009605]: mmWaveQuickConfig: Ignored blank or comment line: '% Frequency:60'
    [ INFO] [1597422391.866200268]: mmWaveQuickConfig: Ignored blank or comment line: '% Platform:xWR68xx_AOP'
    [ INFO] [1597422391.866384865]: mmWaveQuickConfig: Ignored blank or comment line: '% Scene Classifier:best_range_res'
    [ INFO] [1597422391.866579748]: mmWaveQuickConfig: Ignored blank or comment line: '% Azimuth Resolution(deg):30 + 30'
    [ INFO] [1597422391.866767270]: mmWaveQuickConfig: Ignored blank or comment line: '% Range Resolution(m):0.047'
    [ INFO] [1597422391.866960232]: mmWaveQuickConfig: Ignored blank or comment line: '% Maximum unambiguous Range(m):9.02'
    [ INFO] [1597422391.867146257]: mmWaveQuickConfig: Ignored blank or comment line: '% Maximum Radial Velocity(m/s):4.99'
    [ INFO] [1597422391.867336966]: mmWaveQuickConfig: Ignored blank or comment line: '% Radial velocity resolution(m/s):0.63'
    [ INFO] [1597422391.867524628]: mmWaveQuickConfig: Ignored blank or comment line: '% Frame Duration(msec):33.333'
    [ INFO] [1597422391.867722191]: mmWaveQuickConfig: Ignored blank or comment line: '% Range Detection Threshold (dB):15'
    [ INFO] [1597422391.867901280]: mmWaveQuickConfig: Ignored blank or comment line: '% Doppler Detection Threshold (dB):15'
    [ INFO] [1597422391.868104528]: mmWaveQuickConfig: Ignored blank or comment line: '% Range Peak Grouping:enabled'
    [ INFO] [1597422391.868306084]: mmWaveQuickConfig: Ignored blank or comment line: '% Doppler Peak Grouping:enabled'
    [ INFO] [1597422391.868509383]: mmWaveQuickConfig: Ignored blank or comment line: '% Static clutter removal:disabled'
    [ INFO] [1597422391.868680917]: mmWaveQuickConfig: Ignored blank or comment line: '% Angle of Arrival FoV: Full FoV'
    [ INFO] [1597422391.868878937]: mmWaveQuickConfig: Ignored blank or comment line: '% Range FoV: Full FoV'
    [ INFO] [1597422391.869050460]: mmWaveQuickConfig: Ignored blank or comment line: '% Doppler FoV: Full FoV'
    [ INFO] [1597422391.869251442]: mmWaveQuickConfig: Ignored blank or comment line: '% ***************************************************************'
    [ INFO] [1597422391.869591458]: mmWaveQuickConfig: Sending command: 'sensorStop'
    [ERROR] [1597422391.870457989]: mmWaveQuickConfig: Failed to call service mmWaveCLI
    [ERROR] [1597422391.870473073]: sensorStop
    [radar_0/ti_mmwave_config-3] process has died [pid 2683, exit code 1, cmd /home/teo/catkin_ws/devel/lib/ti_mmwave_rospkg/mmWaveQuickConfig /home/teo/catkin_ws/src/ti_mmwave_rospkg/cfg/6843AOP_3d.cfg __nam
    e:=ti_mmwave_config __log:=/home/teo/.ros/log/a61ede42-de4a-11ea-be08-40234396a24f/radar_0-ti_mmwave_config-3.log].
    log file: /home/teo/.ros/log/a61ede42-de4a-11ea-be08-40234396a24f/radar_0-ti_mmwave_config-3*.log

    I am using Industrial Toolbox 4.4.1.

  • What kind of source file do you have in mind?

  • In the source code of mmWaveQuickConfig.cpp extracted from the industrial toolbox, there is no mention of printing "ignored blank or comment line:...".

    I highly recommend removing the ti_mmwave_rospkg folder and replacing it directly from the toolbox. You will have to edit the the launch file again to correct for the USB ports. 

  • I re-installed the industrial toolbox 4.4.1 package, from this directory: Software/mmWave Sensors/Industrial Toolbox(4.4.1)

    I can assure you I am using the right toolbox.

    The error does not go away.

    ignored blank or comment line:... might be cause because of reading the file content?

  • Could you please compare what I have for the source of the onInit function in <catkin_ws>/src/ti_mmwave_rospkg/src/mmWaveCommSrv.cpp?

    void mmWaveCommSrv::onInit()
    {
        ros::NodeHandle private_nh = getPrivateNodeHandle();
        ros::NodeHandle private_nh2("~"); // follow namespace for multiple sensors
       
        private_nh2.getParam("command_port", mySerialPort);
        
        private_nh2.getParam("command_rate", myBaudRate);
        
        ROS_INFO("mmWaveCommSrv: command_port = %s", mySerialPort.c_str());
        ROS_INFO("mmWaveCommSrv: command_rate = %d", myBaudRate);
        
        commSrv = private_nh.advertiseService("/mmWaveCLI", &mmWaveCommSrv::commSrv_cb, this);
        
        NODELET_DEBUG("mmWaveCommsrv: Finished onInit function");
    }

  • The files are the same.

    Now I am getting a different output error.

    started roslaunch server http://teo-G3-3590:34123/

    SUMMARY
    ========

    PARAMETERS
     * /radar_0/ti_mmwave/command_port: /dev/ttyUSB1
     * /radar_0/ti_mmwave/command_rate: 115200
     * /radar_0/ti_mmwave/data_port: /dev/ttyUSB0
     * /radar_0/ti_mmwave/data_rate: 921600
     * /radar_0/ti_mmwave/frame_id: /ti_mmwave_0
     * /radar_0/ti_mmwave/max_allowed_azimuth_angle_deg: 90
     * /radar_0/ti_mmwave/max_allowed_elevation_angle_deg: 90
     * /rosdistro: kinetic
     * /rosversion: 1.12.14

    NODES
      /radar_0/
        ti_mmwave (ti_mmwave_rospkg/ti_mmwave_rospkg)
        ti_mmwave_config (ti_mmwave_rospkg/mmWaveQuickConfig)
      /
        radar_baselink_0 (tf/static_transform_publisher)
        rviz (rviz/rviz)

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

    setting /run_id to 277fe5cc-de5e-11ea-be08-40234396a24f
    process[rosout-1]: started with pid [22711]
    started core service [/rosout]
    process[radar_0/ti_mmwave-2]: started with pid [22722]
    process[radar_0/ti_mmwave_config-3]: started with pid [22729]
    process[radar_baselink_0-4]: started with pid [22730]
    [ INFO] [1597430656.636065707]: mmWaveQuickConfig: Configuring mmWave device using config file: /home/teo/catkin_ws/src/ti_mmwave_rospkg/cfg/6843AOP_3d.cfg
    [ INFO] [1597430656.637144296]: waitForService: Service [/mmWaveCLI] has not been advertised, waiting...
    process[rviz-5]: started with pid [22738]
    [ INFO] [1597430656.673489985]: Initializing nodelet with 12 worker threads.
    [ INFO] [1597430656.676121471]: mmWaveCommSrv: command_port = /dev/ttyUSB1
    [ INFO] [1597430656.676136798]: mmWaveCommSrv: command_rate = 115200
    [ INFO] [1597430656.678122436]: mmWaveDataHdl: data_port = /dev/ttyUSB0
    [ INFO] [1597430656.678138157]: mmWaveDataHdl: data_rate = 921600
    [ INFO] [1597430656.678175586]: mmWaveDataHdl: max_allowed_elevation_angle_deg = 90
    [ INFO] [1597430656.678203278]: mmWaveDataHdl: max_allowed_azimuth_angle_deg = 90
    [ INFO] [1597430656.678821695]: waitForService: Service [/mmWaveCLI] is now available.
    [ INFO] [1597430657.184458724]: mmWaveCommSrv: Sending command to sensor: 'sensorStop'
    [ INFO] [1597430658.184542028]: mmWaveCommSrv: Received response from sensor: ''
    [ERROR] [1597430658.185329089]: mmWaveQuickConfig: Command failed (mmWave sensor did not respond with 'Done')
    [ERROR] [1597430658.185353857]: mmWaveQuickConfig: Response: ''
    [radar_0/ti_mmwave_config-3] process has died [pid 22729, exit code 1, cmd /home/teo/catkin_ws/devel/lib/ti_mmwave_rospkg/mmWaveQuickConfig /home/teo/catkin_ws/src/ti_mmwave_rospkg/cfg/6843AOP_3d.cfg __na
    me:=ti_mmwave_config __log:=/home/teo/.ros/log/277fe5cc-de5e-11ea-be08-40234396a24f/radar_0-ti_mmwave_config-3.log].
    log file: /home/teo/.ros/log/277fe5cc-de5e-11ea-be08-40234396a24f/radar_0-ti_mmwave_config-3*.log

  • Have you flashed the AOP with the out_of_box_demo? If so, try resetting the device by toggling the NRST button. 

  • Installing the out_of_the_box_demo and flashing the module once again solved it for me. Besides that I had to change the command and data port to the ones that my computer detected it (ls /dev/tty*).