iliasam / LDS01RR_lidar

Some info and soft for LDS01RR Lidar
14 stars 3 forks source link

ROS lds01rr #1

Open Jfenfas opened 2 years ago

Jfenfas commented 2 years ago

Sorry for the bother, but i'm a ros begginer and i've been working on a final project for my course and it consists of robot wich uses a lidar to perform hector_slam and i have been trying to use your package to first test the lidar with rviz but i can't get it to work. i could open and run the lidarscannigtest on windows. if you could give me some hints or directions on how to correctly install and launch your package i would aprecciate it a lot. thanks and have a nice day ;)

iliasam commented 2 years ago

Have you tried to build ROS node from here: https://github.com/iliasam/LDS01RR_lidar/tree/main/lds01rr_lidar ? You need to open this folder in Linux terminal and execute "make" command.

After that you will need to run package: https://github.com/iliasam/LDS01RR_lidar/blob/main/lds01rr_lidar/tof_lidar.launch Linux command: roslaunch tof_lidar.launch Maybe you will need to change USB port in tof_lidar.launch file.

After that you can run rviz.

Jfenfas commented 2 years ago

Thanks for your response, i will give it a go once i get home. Do i need to build it in a catkin workspace?

Obter o Outlook para Androidhttps://aka.ms/AAb9ysg


From: iliasam @.> Sent: Thursday, May 5, 2022 8:37:40 AM To: iliasam/LDS01RR_lidar @.> Cc: Jfenfas @.>; Author @.> Subject: Re: [iliasam/LDS01RR_lidar] ROS lds01rr (Issue #1)

Have you tried to build ROS node from here: https://github.com/iliasam/LDS01RR_lidar/tree/main/lds01rr_lidar ? You need to open this folder in Linux terminal and execute "make" command.

After that you will need to run package: https://github.com/iliasam/LDS01RR_lidar/blob/main/lds01rr_lidar/tof_lidar.launch Linux command: roslaunch tof_lidar.launch Maybe you will need to change USB port in tof_lidar.launch file.

After that you can run rviz.

— Reply to this email directly, view it on GitHubhttps://github.com/iliasam/LDS01RR_lidar/issues/1#issuecomment-1118257284, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZAXVWH2WFAXFZYAMZJ3JOLVIN3EJANCNFSM5VDWE6SQ. You are receiving this because you authored the thread.Message ID: @.***>

Jfenfas commented 2 years ago

I checked the port and it was correct, i was not able to initiate the lidar node and i could not figure out why. I will try what you have mentioned before thanks a lot 😁

Obter o Outlook para Androidhttps://aka.ms/AAb9ysg


From: Joao Pedro Ferreira @.> Sent: Thursday, May 5, 2022 8:43:44 AM To: iliasam/LDS01RR_lidar @.>; iliasam/LDS01RR_lidar @.> Cc: Author @.> Subject: Re: [iliasam/LDS01RR_lidar] ROS lds01rr (Issue #1)

Thanks for your response, i will give it a go once i get home. Do i need to build it in a catkin workspace?

Obter o Outlook para Androidhttps://aka.ms/AAb9ysg


From: iliasam @.> Sent: Thursday, May 5, 2022 8:37:40 AM To: iliasam/LDS01RR_lidar @.> Cc: Jfenfas @.>; Author @.> Subject: Re: [iliasam/LDS01RR_lidar] ROS lds01rr (Issue #1)

Have you tried to build ROS node from here: https://github.com/iliasam/LDS01RR_lidar/tree/main/lds01rr_lidar ? You need to open this folder in Linux terminal and execute "make" command.

After that you will need to run package: https://github.com/iliasam/LDS01RR_lidar/blob/main/lds01rr_lidar/tof_lidar.launch Linux command: roslaunch tof_lidar.launch Maybe you will need to change USB port in tof_lidar.launch file.

After that you can run rviz.

— Reply to this email directly, view it on GitHubhttps://github.com/iliasam/LDS01RR_lidar/issues/1#issuecomment-1118257284, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZAXVWH2WFAXFZYAMZJ3JOLVIN3EJANCNFSM5VDWE6SQ. You are receiving this because you authored the thread.Message ID: @.***>

iliasam commented 2 years ago

"Do i need to build it in a catkin workspace?" I'm not sure, as I can remember, I do not do this. I am not ROS specialist.

Jfenfas commented 2 years ago

I will try both aproaches and i will give feedback on what works and how if i am able to figure it out

Obter o Outlook para Androidhttps://aka.ms/AAb9ysg


From: iliasam @.> Sent: Thursday, May 5, 2022 9:33:04 AM To: iliasam/LDS01RR_lidar @.> Cc: Jfenfas @.>; Author @.> Subject: Re: [iliasam/LDS01RR_lidar] ROS lds01rr (Issue #1)

"Do i need to build it in a catkin workspace?" I'm not sure, as I can remember, I do not do this. I am not ROS specialist.

— Reply to this email directly, view it on GitHubhttps://github.com/iliasam/LDS01RR_lidar/issues/1#issuecomment-1118300436, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZAXVWDZWCFS4HQDSI3GR5DVIOBUBANCNFSM5VDWE6SQ. You are receiving this because you authored the thread.Message ID: @.***>

Jfenfas commented 2 years ago

@.***:~/lidar$ git clone https://github.com/iliasam/LDS01RR_lidar/tree/main/lds01rr_lidar Cloning into 'lds01rr_lidar'... fatal: repository 'https://github.com/iliasam/LDS01RR_lidar/tree/main/lds01rr_lidar/' not found

this i what happens when i try to clone from github


De: iliasam @.> Enviado: 5 de maio de 2022 08:37 Para: iliasam/LDS01RR_lidar @.> Cc: Jfenfas @.>; Author @.> Assunto: Re: [iliasam/LDS01RR_lidar] ROS lds01rr (Issue #1)

Have you tried to build ROS node from here: https://github.com/iliasam/LDS01RR_lidar/tree/main/lds01rr_lidar ? You need to open this folder in Linux terminal and execute "make" command.

After that you will need to run package: https://github.com/iliasam/LDS01RR_lidar/blob/main/lds01rr_lidar/tof_lidar.launch Linux command: roslaunch tof_lidar.launch Maybe you will need to change USB port in tof_lidar.launch file.

After that you can run rviz.

— Reply to this email directly, view it on GitHubhttps://github.com/iliasam/LDS01RR_lidar/issues/1#issuecomment-1118257284, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZAXVWH2WFAXFZYAMZJ3JOLVIN3EJANCNFSM5VDWE6SQ. You are receiving this because you authored the thread.Message ID: @.***>

iliasam commented 2 years ago

Try to "git clone https://github.com/iliasam/LDS01RR_lidar" Or just download files: https://github.com/iliasam/LDS01RR_lidar/archive/refs/heads/main.zip

Jfenfas commented 2 years ago

Hey, i was able to install it but when i try to run it this is what i get

@.***:~/Downloads/LDS01RR_lidar-main/lds01rr_lidar$ roslaunch tof_lidar.launch ... logging to /home/pi/.ros/log/8b8a4bca-cd0e-11ec-b3e7-c7b72b391bad/roslaunch-ubuntu-13717.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://ubuntu:35103/

SUMMARY

PARAMETERS

NODES / base_link_to_laser (tf/static_transform_publisher) lidar_driver (lds01rr_lidar/lidar_publisher)

ROS_MASTER_URI=http://localhost:11311

process[base_link_to_laser-1]: started with pid [13762] ERROR: cannot launch node of type [lds01rr_lidar/lidar_publisher]: lds01rr_lidar ROS path [0]=/opt/ros/noetic/share/ros ROS path [1]=/home/pi/catkin_ws/src ROS path [2]=/home/pi/ANSB_ws/src ROS path [3]=/opt/ros/noetic/share


De: iliasam @.> Enviado: 5 de maio de 2022 18:31 Para: iliasam/LDS01RR_lidar @.> Cc: Jfenfas @.>; Author @.> Assunto: Re: [iliasam/LDS01RR_lidar] ROS lds01rr (Issue #1)

Try to "git clone [https://github.com/iliasam/LDS01RR_lidar](https://github.com/iliasam/LDS01RR_lidar" Or just download files: https://github.com/iliasam/LDS01RR_lidar/archive/refs/heads/main.zip

— Reply to this email directly, view it on GitHubhttps://github.com/iliasam/LDS01RR_lidar/issues/1#issuecomment-1118863369, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZAXVWEKIZMRJRYTNWFXAD3VIQAWLANCNFSM5VDWE6SQ. You are receiving this because you authored the thread.Message ID: @.***>

iliasam commented 2 years ago

Have you build ROS node?

Jfenfas commented 2 years ago

To be honest i dont quite know, i get this error. How is the node built? i'm sorry i'm just a bit burned out and tired

@.***:~/catkin_ws/src/lds01rr_lidar$ roslaunch tof_lidar.launch ... logging to /home/pi/.ros/log/8b8a4bca-cd0e-11ec-b3e7-c7b72b391bad/roslaunch-ubuntu-16449.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://ubuntu:38539/

SUMMARY

PARAMETERS

NODES / base_link_to_laser (tf/static_transform_publisher) lidar_driver (lds01rr_lidar/lidar_publisher)

ROS_MASTER_URI=http://localhost:11311

process[base_link_to_laser-1]: started with pid [16463] ERROR: cannot launch node of type [lds01rr_lidar/lidar_publisher]: Cannot locate node of type [lidar_publisher] in package [lds01rr_lidar]. Make sure file exists in package path and permission is set to executable (chmod +x)


De: iliasam @.> Enviado: 6 de maio de 2022 09:09, Para: iliasam/LDS01RR_lidar @.> Cc: Jfenfas @.>; Author @.> Assunto: Re: [iliasam/LDS01RR_lidar] ROS lds01rr (Issue #1)

Have you build ROS node?

— Reply to this email directly, view it on GitHubhttps://github.com/iliasam/LDS01RR_lidar/issues/1#issuecomment-1119363739, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZAXVWHQUYKM6UVEH53IPFTVITHSPANCNFSM5VDWE6SQ. You are receiving this because you authored the thread.Message ID: @.***>

iliasam commented 2 years ago

"Have you tried to build ROS node from here: https://github.com/iliasam/LDS01RR_lidar/tree/main/lds01rr_lidar ? You need to open this folder in Linux terminal and execute "make" command."

Jfenfas commented 2 years ago

i try but i get this

@.***:~/lidar$ git clone https://github.com/iliasam/LDS01RR_lidar/tree/main/lds01rr_lidar Cloning into 'lds01rr_lidar'... fatal: repository 'https://github.com/iliasam/LDS01RR_lidar/tree/main/lds01rr_lidar/' not found


De: iliasam @.> Enviado: 6 de maio de 2022 09:41 Para: iliasam/LDS01RR_lidar @.> Cc: Jfenfas @.>; Author @.> Assunto: Re: [iliasam/LDS01RR_lidar] ROS lds01rr (Issue #1)

"Have you tried to build ROS node from here: https://github.com/iliasam/LDS01RR_lidar/tree/main/lds01rr_lidar ? You need to open this folder in Linux terminal and execute "make" command."

— Reply to this email directly, view it on GitHubhttps://github.com/iliasam/LDS01RR_lidar/issues/1#issuecomment-1119389197, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZAXVWAVJLPNKCG5RVOVWWLVITLKVANCNFSM5VDWE6SQ. You are receiving this because you authored the thread.Message ID: @.***>

iliasam commented 2 years ago

The main part here is "You need to open this folder in Linux terminal and execute "make" command.""

Jfenfas commented 2 years ago

how do i open it?


De: iliasam @.> Enviado: 6 de maio de 2022 09:41 Para: iliasam/LDS01RR_lidar @.> Cc: Jfenfas @.>; Author @.> Assunto: Re: [iliasam/LDS01RR_lidar] ROS lds01rr (Issue #1)

"Have you tried to build ROS node from here: https://github.com/iliasam/LDS01RR_lidar/tree/main/lds01rr_lidar ? You need to open this folder in Linux terminal and execute "make" command."

— Reply to this email directly, view it on GitHubhttps://github.com/iliasam/LDS01RR_lidar/issues/1#issuecomment-1119389197, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZAXVWAVJLPNKCG5RVOVWWLVITLKVANCNFSM5VDWE6SQ. You are receiving this because you authored the thread.Message ID: @.***>

Jfenfas commented 2 years ago

hat i am doing is

git clone https://github.com/iliasam/LDS01RRhttps://github.com/iliasam/LDS01RR_lidar/tree/main/lds01rr_lidar

cd LDS01RR_lidar/lds01rr_lidar/

make

and then it outputs this:

@.***:~/lidar/LDS01RR_lidar/lds01rr_lidar$ make mkdir -p bin cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=/opt/ros/noetic/share/ros/core/rosbuild/rostoolchain.cmake .. CMake Warning (dev) in CMakeLists.txt: No project() command is present. The top-level CMakeLists.txt file must contain a literal, direct call to the project() command. Add a line of code such as

project(ProjectName)

near the top of the file, but after cmake_minimum_required().

CMake is pretending there is a "project(Project)" command on the first line. This warning is for project developers. Use -Wno-dev to suppress it.

-- The C compiler identification is GNU 9.4.0 -- The CXX compiler identification is GNU 9.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Deprecation Warning at /opt/ros/noetic/share/ros/core/rosbuild/rosbuild.cmake:7 (cmake_policy): The OLD behavior for policy CMP0011 will be removed from a future version of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD. Call Stack (most recent call first): CMakeLists.txt:2 (include)

CMake Deprecation Warning at /opt/ros/noetic/share/ros/core/rosbuild/rosbuild.cmake:16 (cmake_policy): The OLD behavior for policy CMP0002 will be removed from a future version of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD. Call Stack (most recent call first): CMakeLists.txt:2 (include)

CMake Deprecation Warning at /opt/ros/noetic/share/ros/core/rosbuild/rosbuild.cmake:18 (cmake_policy): The OLD behavior for policy CMP0003 will be removed from a future version of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD. Call Stack (most recent call first): CMakeLists.txt:2 (include)

CMake Deprecation Warning at /opt/ros/noetic/share/ros/core/rosbuild/rosbuild.cmake:20 (cmake_policy): The OLD behavior for policy CMP0005 will be removed from a future version of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD. Call Stack (most recent call first): CMakeLists.txt:2 (include)

CMake Deprecation Warning at /opt/ros/noetic/share/ros/core/rosbuild/rosbuild.cmake:23 (cmake_policy): The OLD behavior for policy CMP0011 will be removed from a future version of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD. Call Stack (most recent call first): CMakeLists.txt:2 (include)

-- Found PythonInterp: /usr/bin/python3.8 (found version "3.8.10") [rosbuild] Building package lds01rr_lidar [rosbuild] Error from directory check: /opt/ros/noetic/share/ros/core/rosbuild/bin/check_same_directories.py /home/pi/lidar/LDS01RR_lidar/lds01rr_lidar 1 Traceback (most recent call last): File "/opt/ros/noetic/share/ros/core/rosbuild/bin/check_same_directories.py", line 46, in raise Exception Exception CMake Error at /opt/ros/noetic/share/ros/core/rosbuild/private.cmake:99 (message): [rosbuild] rospack found package "lds01rr_lidar" at "", but the current directory is "/home/pi/lidar/LDS01RR_lidar/lds01rr_lidar". You should double-check your ROS_PACKAGE_PATH to ensure that packages are found in the correct precedence order. Call Stack (most recent call first): /opt/ros/noetic/share/ros/core/rosbuild/public.cmake:177 (_rosbuild_check_package_location) CMakeLists.txt:12 (rosbuild_init)

-- Configuring incomplete, errors occurred! See also "/home/pi/lidar/LDS01RR_lidar/lds01rr_lidar/build/CMakeFiles/CMakeOutput.log". make: *** [/opt/ros/noetic/share/mk/cmake.mk:10: all] Error 1


De: iliasam @.> Enviado: 6 de maio de 2022 09:41 Para: iliasam/LDS01RR_lidar @.> Cc: Jfenfas @.>; Author @.> Assunto: Re: [iliasam/LDS01RR_lidar] ROS lds01rr (Issue #1)

"Have you tried to build ROS node from here: https://github.com/iliasam/LDS01RR_lidar/tree/main/lds01rr_lidar ?

You need to open this folder in Linux terminal and execute "make" command."

— Reply to this email directly, view it on GitHubhttps://github.com/iliasam/LDS01RR_lidar/issues/1#issuecomment-1119389197, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZAXVWAVJLPNKCG5RVOVWWLVITLKVANCNFSM5VDWE6SQ. You are receiving this because you authored the thread.Message ID: @.***>

W

Jfenfas commented 2 years ago

im still begining but yes i am getting used to it


De: iliasam @.> Enviado: 6 de maio de 2022 13:19 Para: iliasam/LDS01RR_lidar @.> Cc: Jfenfas @.>; Author @.> Assunto: Re: [iliasam/LDS01RR_lidar] ROS lds01rr (Issue #1)

Do you know how to use Linux terminal, how to move between folders, how to execute programs in Linux from terminal?

— Reply to this email directly, view it on GitHubhttps://github.com/iliasam/LDS01RR_lidar/issues/1#issuecomment-1119556314, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZAXVWEX5LLFPZ5GJHCFHZTVIUE4JANCNFSM5VDWE6SQ. You are receiving this because you authored the thread.Message ID: @.***>

iliasam commented 2 years ago

As I understand, you need to run: git clone https://github.com/iliasam/LDS01RR_lidar.git

About problems with making project: Looks like that you need to copy "lds01rr_lidar" folder to your ROS workspace folder, and run make in "lds01rr_lidar" folder. See http://wiki.ros.org/ROS/Tutorials/InstallingandConfiguringROSEnvironment I'm using old Linux with old ROS, based on "rosbuild", so maybe this is source of problems.

Jfenfas commented 2 years ago

maybe that is the problem since i am using ros noetic


De: iliasam @.> Enviado: 6 de maio de 2022 13:51 Para: iliasam/LDS01RR_lidar @.> Cc: Jfenfas @.>; Author @.> Assunto: Re: [iliasam/LDS01RR_lidar] ROS lds01rr (Issue #1)

As I understand, you need to run: git clone https://github.com/iliasam/LDS01RR_lidar.git

About problems with making project: Looks like that you need to copy "lds01rr_lidar" folder to your ROS workspace folder, and run make in "lds01rr_lidar" folder. See http://wiki.ros.org/ROS/Tutorials/InstallingandConfiguringROSEnvironment I'm using old Linux with old ROS, based on "rosbuild", so maybe this is source of problems.

— Reply to this email directly, view it on GitHubhttps://github.com/iliasam/LDS01RR_lidar/issues/1#issuecomment-1119583258, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZAXVWC4PPPLRYUWBA4FPM3VIUITVANCNFSM5VDWE6SQ. You are receiving this because you authored the thread.Message ID: @.***>