CygLiDAR-ROS / cyglidar_d1

CygLiDAR D1 - ROS(SDK) Package (ROS1 / ROS2)
https://www.cygbot.com/
BSD 3-Clause "New" or "Revised" License
21 stars 25 forks source link

CygbotParser.co does not compile #26

Open Tanay176 opened 2 years ago

Tanay176 commented 2 years ago

I've followed the instructions provided and I'm working with ROS Noetic on Ubuntu 20.04, however whenever executing the catkin_make command, I get the following error.

/home/i4/catkin_ws/src/cyglidar_d1/src/CygbotParser.c:40:16: error: cannot convert ‘uint8_t’ {aka ‘unsigned char’} to ‘Payload’ {aka ‘Packet_Payload’} in assignment 40 pk->Payload = &CmdBuff[POS_PAYLOAD_HEADER]; ^~~~~~~~
uint8_t {aka unsigned char}

make[2]: [cyglidar_d1/CMakeFiles/cyglidar_d1.dir/build.make:63: cyglidar_d1/CMakeFiles/cyglidar_d1.dir/src/CygbotParser.c.o] Error 1 make[1]: [CMakeFiles/Makefile2:1105: cyglidar_d1/CMakeFiles/cyglidar_d1.dir/all] Error 2 make: *** [Makefile:141: all] Error 2 Invoking "make -j1" failed

Could you please advise on any change to be made to that file. I'm able to build the rest of the package files alright but this one prevents the make command from completing.

mrezzaaa commented 2 years ago

Same problem on macos with conda env

amir-m2ai commented 2 years ago

Hi @Tanay176, Please check the issue "Error when running catking_make" here: https://github.com/CygLiDAR-ROS/cyglidar_d1/issues/29 I have provided step-by-step instruction to make the package. I hope that resolves your issue.