SICKAG / sick_scan_xd

Based on the sick_scan drivers for ROS1, sick_scan_xd merges sick_scan, sick_scan2 and sick_scan_base repositories. The driver supports both Linux (native, ROS1, ROS2) and Windows (native and ROS2).
Apache License 2.0
95 stars 85 forks source link

The 90 shift issue happens again of Tim240 in this new repository #214

Closed Phymin closed 8 months ago

Phymin commented 11 months ago

The linked issue in the archived repository: #138

unfortunately, this issue happens again in this new repository, please see the pictures below, the first one is from the archived repository, and the second one is from this new repository. Could you explain why this happens again? Thanks.

Snipaste_2023-09-06_16-07-54 Snipaste_2023-09-06_16-05-22
rostest commented 11 months ago

Thanks for reporting this. We will check the angle shift for the TiM-240.

rostest commented 11 months ago

We checked the angle shift for the TiM-240 with both sick_scan_xd and sick_scan. rivz showed identical and correct pointcloud and laserscan messages in both versions:

rviz-screenshot using latest version of sick_scan_xd: image

rviz-screenshot using sick_scan: image

Did you use the latest sick_scan_xd release with default launchfile sick_tim_240.launch? Please post a complete logfile or screenshots of all sick_scan_xd messages from start. The output should look like this:

rostest@ROS-NB:~/ros_sick_scan_xd/sick_scan_xd_2.x.x_ros1$ roslaunch sick_scan sick_tim_240.launch hostname:=192.168.0.1
... logging to /home/rostest/.ros/log/6a603aaa-5088-11ee-8482-57e76cec8df8/roslaunch-ROS-NB-38975.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
WARNING: disk usage in log directory [/home/rostest/.ros/log] is over 1GB.
It's recommended that you use the 'rosclean' command.

started roslaunch server http://ROS-NB:37761/

SUMMARY
========

PARAMETERS
 * /rosdistro: noetic
 * /rosversion: 1.15.8
 * /sick_tim_240/add_transform_check_dynamic_updates: False
 * /sick_tim_240/add_transform_xyz_rpy: 0,0,0,0,0,0
 * /sick_tim_240/client_authorization_pw: F4724744
 * /sick_tim_240/cloud_topic: cloud
 * /sick_tim_240/frame_id: cloud
 * /sick_tim_240/hostname: 192.168.0.1
 * /sick_tim_240/intensity: True
 * /sick_tim_240/intensity_resolution_16bit: True
 * /sick_tim_240/max_ang: 2.094395102
 * /sick_tim_240/message_monitoring_enabled: True
 * /sick_tim_240/min_ang: -2.094395102
 * /sick_tim_240/min_intensity: 0.0
 * /sick_tim_240/port: 2111
 * /sick_tim_240/range_filter_handling: 0
 * /sick_tim_240/range_max: 100.0
 * /sick_tim_240/range_min: 0.0
 * /sick_tim_240/read_timeout_millisec_default: 5000
 * /sick_tim_240/read_timeout_millisec_kill_node: 150000
 * /sick_tim_240/read_timeout_millisec_startup: 120000
 * /sick_tim_240/ros_qos: -1
 * /sick_tim_240/scanner_type: sick_tim_240
 * /sick_tim_240/start_services: True
 * /sick_tim_240/sw_pll_only_publish: True
 * /sick_tim_240/time_increment: 0.00019290123
 * /sick_tim_240/timelimit: 5
 * /sick_tim_240/use_binary_protocol: True
 * /sick_tim_240/use_generation_timestamp: True

NODES
  /
    sick_tim_240 (sick_scan/sick_generic_caller)

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

setting /run_id to 6a603aaa-5088-11ee-8482-57e76cec8df8
process[rosout-1]: started with pid [39012]
started core service [/rosout]
process[sick_tim_240-2]: started with pid [39019]
[ INFO] [1694425733.660340853]: sick_generic_caller V. 2.10.0
[ INFO] [1694425733.661035070]: Program argument 1: /home/rostest/ros_sick_scan_xd/sick_scan_xd_2.x.x_ros1/devel_isolated/sick_scan/lib/sick_scan/sick_generic_caller
[ INFO] [1694425733.661059943]: Program argument 2: __log:=/home/rostest/.ros/log/6a603aaa-5088-11ee-8482-57e76cec8df8/sick_tim_240-2.log
[ INFO] [1694425733.661072547]: Program argument 3: __name:=sick_tim_240
[ INFO] [1694425733.661091453]: ==========================================
[ INFO] [1694425733.664647329]: Range filter configuration: range_min=0, range_max=100, range_filter_handling=0
[ INFO] [1694425733.665367862]: Found sopas_protocol_type param overwriting default protocol:
[ INFO] [1694425733.665395066]: Binary protocol activated
[ INFO] [1694425733.666313673]: Start initialising scanner [Ip: 192.168.0.1] [Port:2111]
[ INFO] [1694425733.700598682]: Publishing lidar pointcloud2 to cloud
[ INFO] [1694425733.701059558]: Publishing on topic "/cloud", qos=10
[ INFO] [1694425733.702312684]: Publishing on topic "/sick_tim_240/imu", qos=10
[ INFO] [1694425733.703173407]: Publishing on topic "/sick_tim_240/encoder", qos=10
[ INFO] [1694425733.704169559]: Publishing on topic "/sick_tim_240/scan", qos=10
[ INFO] [1694425733.705688301]: SickCloudTransform: add_transform_xyz_rpy = (0,0,0,0,0,0)
[ INFO] [1694425733.705757515]: SickCloudTransform: azimuth_offset = 0 [deg]
[ INFO] [1694425733.705792457]: SickCloudTransform: additional 3x3 rotation matrix = { (1,0,0), (0,1,0), (0,0,1) }
[ INFO] [1694425733.705832113]: SickCloudTransform: apply 3x3 rotation = false
[ INFO] [1694425733.705879390]: SickCloudTransform: additional translation = (0,0,0)
[ INFO] [1694425733.705909253]: SickCloudTransform: check_dynamic_updates = false
[ INFO] [1694425733.705995045]: sick_scan_xd: Tcp::open: connecting to 192.168.0.1:2111 ...
[ INFO] [1694425733.706954900]: sick_scan_xd Tcp::open: connected to 192.168.0.1:2111
[ INFO] [1694425733.706992651]: SickThread TcpRecvThread started.
[ INFO] [1694425733.708882859]: Parameter setting for <active_echo: 0>
[ INFO] [1694425733.709640777]: Sending  : <STX><STX><STX><STX><Len=0017>sRN SCdevicestate CRC:<0x30>
[ INFO] [1694425733.710312600]: Receiving: <STX>sRA SCdevicestate \x01<ETX>
[ INFO] [1694425733.710361879]: checkColaDialect: lidar response in configured Cola-dialect Cola-B
[ INFO] [1694425733.884360599]: Forcing OpenGl version 0.
[ INFO] [1694425733.910632110]: Sending  : <STX><STX><STX><STX><Len=0023>sMN SetAccessMode 0x03 0xf4 0x72 0x47 0x44 CRC:<0xb3>
[ INFO] [1694425733.911610525]: Receiving: <STX>sAN SetAccessMode \x01<ETX>
[ INFO] [1694425734.111838579]: Sending  : <STX><STX><STX><STX><Len=0015>sWN EIHstCola 0x01 CRC:<0x09>
[ INFO] [1694425734.112446742]: Receiving: <STX>sWA EIHstCola <ETX>
[ INFO] [1694425734.312612411]: Sending  : <STX><STX><STX><STX><Len=0019>sRN FirmwareVersion CRC:<0x24>
[ INFO] [1694425734.313259045]: Receiving: <STX>sRA FirmwareVersion \x00\x13\x56\x30\x30\x31\x2e\x30\x30\x30\x2e\x30\x30\x33\x2e\x30\x30\x3...
[ INFO] [1694425734.513457350]: Sending  : <STX><STX><STX><STX><Len=0017>sRN SCdevicestate CRC:<0x30>
[ INFO] [1694425734.514088121]: Receiving: <STX>sRA SCdevicestate \x00<ETX>
[ INFO] [1694425734.714288112]: Sending  : <STX><STX><STX><STX><Len=0010>sRN ODoprh CRC:<0x41>
[ INFO] [1694425734.714942899]: Receiving: <STX>sRA ODoprh \x00\x00\x02\x58<ETX>
[ INFO] [1694425734.901285219]: Stereo is NOT SUPPORTED
[ INFO] [1694425734.901403315]: OpenGl version: 4.6 (GLSL 4.6).
[ INFO] [1694425734.915761790]: Sending  : <STX><STX><STX><STX><Len=0010>sRN ODpwrc CRC:<0x52>
[ INFO] [1694425734.916319401]: Receiving: <STX>sRA ODpwrc \x00\x00\x00\x10<ETX>
[ INFO] [1694425735.116987599]: Sending  : <STX><STX><STX><STX><Len=0016>sRN LocationName CRC:<0x55>
[ INFO] [1694425735.117614108]: Receiving: <STX>sRA LocationName \x00\x0b\x6e\x6f\x74\x20\x64\x65\x66\x69\x6e\x65\x64<ETX>
[ INFO] [1694425735.118374953]: Sending  : <STX><STX><STX><STX><Len=0018>sRN LMPoutputRange CRC:<0x5e>
[ INFO] [1694425735.121681544]: Receiving: <STX>sRA LMPoutputRange \x00\x01\x00\x00\x27\x10\xff\xed\xb0\x80\x00\x12\x4f\x80<ETX>
[ INFO] [1694425735.121723537]: Angle resolution of scanner is 1 [deg]  (in 1/10000th deg: 10000)
[ INFO] [1694425735.121742567]: [From:To] -120 [deg] to 120 [deg] (in 1/10000th deg: from -1200000 to 1200000)
[ INFO] [1694425735.121756183]: MIN_ANG: -2.0944 [rad] -120 [deg]
[ INFO] [1694425735.121783451]: MAX_ANG: 2.0944 [rad] 120 [deg]
[ INFO] [1694425735.121835073]: Sending  : <STX><STX><STX><STX><Len=0033>sWN LMPoutputRange 0x00 0x01 0x00 0x00 0x27 0x10 0xff 0xed 0xb0 0x80 0x00 0x12 0x4f 0x80 CRC:<0xb2>
[ INFO] [1694425735.125895358]: Receiving: <STX>sWA LMPoutputRange <ETX>
[ INFO] [1694425735.125959554]: Sending  : <STX><STX><STX><STX><Len=0018>sRN LMPoutputRange CRC:<0x5e>
[ INFO] [1694425735.129622464]: Receiving: <STX>sRA LMPoutputRange \x00\x01\x00\x00\x27\x10\xff\xed\xb0\x80\x00\x12\x4f\x80<ETX>
[ INFO] [1694425735.129678430]: Angle resolution of scanner is 1 [deg]  (in 1/10000th deg: 10000)
[ INFO] [1694425735.131392448]: MIN_ANG (after command verification): -2.0944 [rad] -120 [deg]
[ INFO] [1694425735.131418258]: MAX_ANG (after command verification): 2.0944 [rad] 120 [deg]
[ INFO] [1694425735.131466625]: Sending  : <STX><STX><STX><STX><Len=0032>sWN LMDscandatacfg 0x01 0x00 0x01 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x00 0x01 CRC:<0x43>
[ INFO] [1694425735.133640562]: Receiving: <STX>sWA LMDscandatacfg <ETX>
[ INFO] [1694425735.133678431]: Sending  : <STX><STX><STX><STX><Len=0018>sRN LMDscandatacfg CRC:<0x67>
[ INFO] [1694425735.137645196]: Receiving: <STX>sRA LMDscandatacfg \x01\x00\x01\x01\x00\x00\x00\x00\x00\x00\x01\x00\x01<ETX>
[ INFO] [1694425735.138552920]: Sending  : <STX><STX><STX><STX><Len=0007>sMN Run CRC:<0x19>
[ INFO] [1694425735.141668673]: Receiving: <STX>sAN Run \x01<ETX>
[ INFO] [1694425735.141729799]: Sending  : <STX><STX><STX><STX><Len=0017>sEN LMDscandata 0x01 CRC:<0x33>
[ INFO] [1694425735.145625673]: Receiving: <STX>sEA LMDscandata \x01<ETX>
[ INFO] [1694425735.147017563]: SickScanServices: service "/sick_tim_240/ColaMsg" created ("/sick_tim_240/ColaMsg")
[ INFO] [1694425735.147498121]: SickScanServices: service "/sick_tim_240/ECRChangeArr" created ("/sick_tim_240/ECRChangeArr")
[ INFO] [1694425735.148178896]: SickScanServices: service "/sick_tim_240/LIDoutputstate" created ("/sick_tim_240/LIDoutputstate")
[ INFO] [1694425735.149018549]: SickScanServices: service "/sick_tim_240/SCdevicestate" created ("/sick_tim_240/SCdevicestate")
[ INFO] [1694425735.149942335]: SickScanServices: service "/sick_tim_240/SCreboot" created ("/sick_tim_240/SCreboot")
[ INFO] [1694425735.150625834]: SickScanServices: service "/sick_tim_240/SCsoftreset" created ("/sick_tim_240/SCsoftreset")
[ INFO] [1694425735.151368605]: SickScanServices: service "/sick_tim_240/SickScanExit" created ("/sick_tim_240/SickScanExit")
[ INFO] [1694425735.151420515]: SickScanServices: ros services initialized
[ INFO] [1694425735.151452014]: Setup completed, sick_scan_xd is up and running. Pointcloud is published on topic "cloud"
[ INFO] [1694425735.161444691]: Software PLL locking started, mapping ticks to system time.
[ INFO] [1694425735.161486981]: 1 / 6 packets dropped. Software PLL not yet locked.
[ INFO] [1694425735.231417654]: 2 / 6 packets dropped. Software PLL not yet locked.
[ INFO] [1694425735.301167657]: 3 / 6 packets dropped. Software PLL not yet locked.
[ INFO] [1694425735.370767468]: 4 / 6 packets dropped. Software PLL not yet locked.
[ INFO] [1694425735.440234432]: 5 / 6 packets dropped. Software PLL not yet locked.
[ INFO] [1694425735.509916754]: Software PLL is ready and locked now!
Phymin commented 9 months ago

@rostest Could u reopen this issue? I think what I'm talking about is the point cloud but not sick scan. please see the pictures below and logs: old sick_scan driver:

Snipaste_2023-10-31_09-03-28_old

new sick_scan_xd driver:

Snipaste_2023-10-31_09-06-13_new

output logs:

... logging to /root/.ros/log/837e489c-7789-11ee-884f-00e0672f74a2/roslaunch-MS-91-12473.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 http://MS-91:40943/

SUMMARY
========

PARAMETERS
 * /rosdistro: melodic
 * /rosversion: 1.14.13
 * /sick_tim_240/add_transform_check_dynamic_updates: False
 * /sick_tim_240/add_transform_xyz_rpy: 0,0,0,0,0,0
 * /sick_tim_240/client_authorization_pw: F4724744
 * /sick_tim_240/cloud_topic: cloud
 * /sick_tim_240/frame_id: cloud
 * /sick_tim_240/hostname: 192.168.3.30
 * /sick_tim_240/intensity: True
 * /sick_tim_240/intensity_resolution_16bit: True
 * /sick_tim_240/max_ang: 2.094395102
 * /sick_tim_240/message_monitoring_enabled: True
 * /sick_tim_240/min_ang: -2.094395102
 * /sick_tim_240/min_intensity: 0.0
 * /sick_tim_240/port: 2111
 * /sick_tim_240/range_filter_handling: 0
 * /sick_tim_240/range_max: 100.0
 * /sick_tim_240/range_min: 0.0
 * /sick_tim_240/read_timeout_millisec_default: 5000
 * /sick_tim_240/read_timeout_millisec_kill_node: 150000
 * /sick_tim_240/read_timeout_millisec_startup: 120000
 * /sick_tim_240/ros_qos: -1
 * /sick_tim_240/scanner_type: sick_tim_240
 * /sick_tim_240/start_services: True
 * /sick_tim_240/sw_pll_only_publish: True
 * /sick_tim_240/time_increment: 0.00019290123
 * /sick_tim_240/timelimit: 5
 * /sick_tim_240/use_binary_protocol: False
 * /sick_tim_240/use_generation_timestamp: True

NODES
  /
    sick_tim_240 (sick_scan_xd/sick_generic_caller)

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

setting /run_id to 837e489c-7789-11ee-884f-00e0672f74a2
process[rosout-1]: started with pid [12496]
started core service [/rosout]
process[sick_tim_240-2]: started with pid [12505]
[ INFO] [1698714299.934205211]: sick_generic_caller V. 3.0.0
[ INFO] [1698714299.935392082]: Program argument 1: /root/sick_ws/install/lib/sick_scan_xd/sick_generic_caller
[ INFO] [1698714299.935440264]: Program argument 2: __log:=/root/.ros/log/837e489c-7789-11ee-884f-00e0672f74a2/sick_tim_240-2.log
[ INFO] [1698714299.935469614]: Program argument 3: __name:=sick_tim_240
[ INFO] [1698714299.935495597]: ==========================================
[ INFO] [1698714299.941059390]: Range filter configuration: range_min=0, range_max=100, range_filter_handling=0
[ INFO] [1698714299.942172879]: Found sopas_protocol_type param overwriting default protocol:
[ INFO] [1698714299.942198253]: ASCII protocol activated
[ INFO] [1698714299.943869627]: PointCloudMonitor started.
[ INFO] [1698714299.943895854]: Start initialising scanner [Ip: 192.168.3.30] [Port:2111]
[ INFO] [1698714299.985702875]: Publishing lidar pointcloud2 to cloud
[ INFO] [1698714299.986190327]: Publishing on topic "/cloud", qos=10
[ INFO] [1698714299.987189191]: Publishing on topic "/sick_tim_240/imu", qos=10
[ INFO] [1698714299.988079060]: Publishing on topic "/sick_tim_240/encoder", qos=10
[ INFO] [1698714299.989120701]: Publishing on topic "/sick_tim_240/scan", qos=10
[ INFO] [1698714299.990335545]: SickCloudTransform: add_transform_xyz_rpy = (0,0,0,0,0,0)
[ INFO] [1698714299.990363414]: SickCloudTransform: azimuth_offset = 0 [deg]
[ INFO] [1698714299.990394185]: SickCloudTransform: additional 3x3 rotation matrix = { (1,0,0), (0,1,0), (0,0,1) }
[ INFO] [1698714299.990408206]: SickCloudTransform: apply 3x3 rotation = false
[ INFO] [1698714299.990424933]: SickCloudTransform: additional translation = (0,0,0)
[ INFO] [1698714299.990438629]: SickCloudTransform: check_dynamic_updates = false
[ INFO] [1698714299.990479848]: sick_scan_xd: Tcp::open: connecting to 192.168.3.30:2111 ...
[ INFO] [1698714299.990793363]: sick_scan_xd Tcp::open: connected to 192.168.3.30:2111
[ INFO] [1698714299.990820638]: SickThread TcpRecvThread started.
[ INFO] [1698714299.992944835]: Parameter setting for <active_echo: 0>
[ INFO] [1698714299.993980699]: Sending  : <STX>sRN SCdevicestate<ETX>
[ INFO] [1698714299.994367687]: Receiving: <STX>sRA SCdevicestate 1<ETX>
[ INFO] [1698714299.994395233]: checkColaDialect: lidar response in configured Cola-dialect Cola-A
[ INFO] [1698714300.194493191]: Sending  : <STX>sMN SetAccessMode 3 F4724744<ETX>
[ INFO] [1698714300.195130696]: Receiving: <STX>sAN SetAccessMode 1<ETX>
[ INFO] [1698714300.395239325]: Sending  : <STX>sWN EIHstCola 0<ETX>
[ INFO] [1698714300.395670893]: Receiving: <STX>sWA EIHstCola<ETX>
[ INFO] [1698714300.595774936]: Sending  : <STX>sRN FirmwareVersion<ETX>
[ INFO] [1698714300.596210786]: Receiving: <STX>sRA FirmwareVersion 13 V001.000.004.003857<ETX>
[ INFO] [1698714300.796316015]: Sending  : <STX>sRN SCdevicestate<ETX>
[ INFO] [1698714300.796747601]: Receiving: <STX>sRA SCdevicestate 0<ETX>
[ INFO] [1698714300.996901998]: Sending  : <STX>sRN ODoprh<ETX>
[ INFO] [1698714300.997321797]: Receiving: <STX>sRA ODoprh 14E9<ETX>
[ INFO] [1698714301.198164975]: Sending  : <STX>sRN ODpwrc<ETX>
[ INFO] [1698714301.198563106]: Receiving: <STX>sRA ODpwrc DB<ETX>
[ INFO] [1698714301.399347915]: Sending  : <STX>sRN LocationName<ETX>
[ INFO] [1698714301.399786510]: Receiving: <STX>sRA LocationName B not defined<ETX>
[ INFO] [1698714301.400509178]: Sending  : <STX>sRN LMPoutputRange<ETX>
[ INFO] [1698714301.401702722]: Receiving: <STX>sRA LMPoutputRange 1 2710 FFEDB080 124F80<ETX>
[ INFO] [1698714301.401745238]: Angle resolution of scanner is 1 [deg]  (in 1/10000th deg: 10000)
[ INFO] [1698714301.401772730]: [From:To] -120 [deg] to 120 [deg] (in 1/10000th deg: from -1200000 to 1200000)
[ INFO] [1698714301.401791708]: MIN_ANG: -2.0944 [rad] -120 [deg]
[ INFO] [1698714301.401805149]: MAX_ANG: 2.0944 [rad] 120 [deg]
[ INFO] [1698714301.401819740]: Sending  : <STX>sWN LMPoutputRange 1 2710 FFEDB080 124F80<ETX>
[ INFO] [1698714301.403663509]: Receiving: <STX>sWA LMPoutputRange<ETX>
[ INFO] [1698714301.403692142]: Sending  : <STX>sRN LMPoutputRange<ETX>
[ INFO] [1698714301.405558089]: Receiving: <STX>sRA LMPoutputRange 1 2710 FFEDB080 124F80<ETX>
[ INFO] [1698714301.405588458]: Angle resolution of scanner is 1 [deg]  (in 1/10000th deg: 10000)
[ INFO] [1698714301.407485253]: MIN_ANG (after command verification): -2.0944 [rad] -120 [deg]
[ INFO] [1698714301.407508575]: MAX_ANG (after command verification): 2.0944 [rad] 120 [deg]
[ INFO] [1698714301.407526791]: Sending  : <STX>sWN LMDscandatacfg 01 00 1 1 0 0 00 0 0 0 1 1<ETX>
[ INFO] [1698714301.408022983]: Receiving: <STX>sWA LMDscandatacfg<ETX>
[ INFO] [1698714301.408051443]: Sending  : <STX>sRN LMDscandatacfg<ETX>
[ INFO] [1698714301.409515983]: Receiving: <STX>sRA LMDscandatacfg 1 0 1 1 0 0 0 0 0 0 1 1<ETX>
[ INFO] [1698714301.410368879]: Sending  : <STX>sMN Run<ETX>
[ INFO] [1698714301.411517671]: Receiving: <STX>sAN Run 1<ETX>
[ INFO] [1698714301.411552615]: Sending  : <STX>sEN LMDscandata 1<ETX>
[ INFO] [1698714301.414064726]: Receiving: <STX>sEA LMDscandata 1<ETX>
[ INFO] [1698714301.415334699]: SickScanServices: service "/sick_tim_240/ColaMsg" created ("/sick_tim_240/ColaMsg")
[ INFO] [1698714301.415847180]: SickScanServices: service "/sick_tim_240/ECRChangeArr" created ("/sick_tim_240/ECRChangeArr")
[ INFO] [1698714301.416363100]: SickScanServices: service "/sick_tim_240/LIDoutputstate" created ("/sick_tim_240/LIDoutputstate")
[ INFO] [1698714301.416859494]: SickScanServices: service "/sick_tim_240/SCdevicestate" created ("/sick_tim_240/SCdevicestate")
[ INFO] [1698714301.417378077]: SickScanServices: service "/sick_tim_240/SCreboot" created ("/sick_tim_240/SCreboot")
[ INFO] [1698714301.417956607]: SickScanServices: service "/sick_tim_240/SCsoftreset" created ("/sick_tim_240/SCsoftreset")
[ INFO] [1698714301.418475837]: SickScanServices: service "/sick_tim_240/SickScanExit" created ("/sick_tim_240/SickScanExit")
[ INFO] [1698714301.418503090]: SickScanServices: ros services initialized
[ INFO] [1698714301.418522591]: Setup completed, sick_scan_xd is up and running. Pointcloud is published on topic "cloud"
rostest commented 9 months ago

Thanks for further information and logfile. We could not reproduce this error with our previous test (see comment above). It might be related to the configuration of the ascii communication protocol type according to the logfile. Please use the default settings in sick_tim_240.launch incl. the binary protocol type, i.e. <param name="use_binary_protocol" type="bool" value="True"/> (default configuration in sick_tim_240.launch). The IP address of the lidar can be set either in the launchfile or by commandline option hostname:=192.168.3.30.

Phymin commented 9 months ago

I will try and provide feedback, but I don't think it has something to do with the binary protocol, because the old sick_scan driver works normally also with ascii protocol.

rostest commented 9 months ago

Many thanks for following up! Btw: Which of your screenshots shows the correct orientation, the one by sick_scan or by sick_scan_xd?

Phymin commented 9 months ago

The screen shot by sick_scan is correct. And you are right, after set the protocol to binary, they are the same now, but I just don't understand why will this happen. Why will it has relationship with the protocol format? old_sick_scan driver(ASCII):

Snipaste_2023-11-01_17-38-59

sick_scan_xd driver(Binary):

Snipaste_2023-11-01_17-25-29
rostest commented 9 months ago

Thank you for your feedback and testing. We are clarifying automatically switching into binary mode for the TiM240 (see #226). In the short term, we recommend using SOPAS ET to preset the lidars to binary mode.

rostest commented 8 months ago

We updated the protocol switching for the TiM-240 in branch feature/tim240_protocol_switch. Please checkout https://github.com/SICKAG/sick_scan_xd/tree/feature/tim240_protocol_switch, rebuild and try again using binary protocol. If the TiM-240 is in Cola-Ascii mode, it will be switched to Cola-B (binary protocol) and restarted after a few seconds.

Phymin commented 8 months ago

Ok, will try it, thanks

Phymin commented 8 months ago

After testing, it's confirmed it's working to change the ascii protocol to binary protocol, but after it's changed to binary mode, if I change use_binary_protocol to false, though at the begining from the output log, there is no error out, but there is also no data published. and after about 150s, there is error out which says there is no data published after about 150s and the driver shutdown automatically.

rostest commented 8 months ago

Thanks for your feedback. Support for the ascii communication protocol is being phased out. Please use the binary communication mode with default setting <param name="use_binary_protocol" type="bool" value="true"/>.