SICKAG / sick_scan_xd

A versatile driver for a wide range of SICK LiDAR and RADAR devices, providing support for both Linux (native, ROS 1, ROS 2) and Windows (native, ROS 2) platforms.
Apache License 2.0
107 stars 86 forks source link

hello! build Error!! #414

Open wanilly opened 2 days ago

wanilly commented 2 days ago

image

You see the picture, the terminal print error message( error: array must be initialized with a brace-enclosed initializer )

I want to solve this problem... plz...

rostest commented 2 days ago

Thanks for your feedback. The sick_scan_xd driver requires C++14. C++11 introduced the initialisation of a std::array with braces like std::array<int, 3> a = {1, 2, 3}.

What gcc version and OS are you using? It looks like gcc does not yet support C++14, similar to #401 or #251. We recommend upgrading to Ubuntu >= 20.04 with gcc >= 5.

wanilly commented 2 days ago

image Unknown CMake command "target_link_options".

gcc version: 5.4.0 ubuntu version: 16.04 LTS

wanilly commented 1 day ago

Hello! I have a question!!...

I use TIM7xxS object. I'm trying to port separately without using api ( without ROS and Ubuntu ). How can I access it? We need to use 18.04 version.

rostest commented 1 day ago

Thank you for more information. Ubuntu 16.04 is no longer supported. If you are using the Linux subsystem on Windows, we recommend to upgrade to Ubuntu 20 or newer. The cmake command target_link_options requires cmake 3.13 or later; we will update the cmake requirements.

To use a TiM781S without the sick_scan_xd API or ROS, you need to establish a TCP connection and communicate with the lidar using the appropriate SOPAS commands. See the TiM781S user manual and the TiM781S telegram listing for details. We recommend using the sick_scan_xd driver on Windows or Linux with Ubuntu 20 or newer.