ROBOTIS-GIT / turtlebot3

ROS packages for Turtlebot3
http://turtlebot3.robotis.com
Apache License 2.0
1.5k stars 1.03k forks source link

i want to know how to get a distance and angle from Laser Sensor #98

Closed issong93 closed 6 years ago

issong93 commented 6 years ago

Hi, i'm a university student to research in the laboratory from Korea. I bought 360 Laser Distance Sensor LDS-01 from ROBOTIS company. I had question about the laser sensor, and i asked to the company. But they want to tell i ask to you.

So, my question is that 10x10 Matrix is shown from matlab/simulink through the Sensor. But i want to know a distance and angle from the Sensor. I don't know understand the 10x10 Matrix's mean. Please can you teach me about solution as soon as possibe. Thank you.

default

routiful commented 6 years ago

Hi :)

Can you explain how to get this variable on MATLAB?

Thanks Darby

issong93 commented 6 years ago

I just received the data of lidar using Serial port of Matlab/Simulink.

default

routiful commented 6 years ago

Before getting data from lidar, you need to communicate with it.

lidar comm example

Above code is example to show how to begin lidar sensor.

Thanks Darby

issong93 commented 6 years ago

Really thanks for your reply

I will try that code

issong93 commented 6 years ago

Where do i get the header files?

include <ros/ros.h>

35 #include <sensor_msgs/LaserScan.h> 36 #include <boost/asio.hpp> 37 #include <hls_lfcd_lds_driver/lfcd_laser.h> 38 #include <std_msgs/UInt16.h>

routiful commented 6 years ago

You can get a information about it in following link

Get Started with ROS in MATLAB

robotpilot commented 6 years ago

This issue will be closed since there were no actions for a while. You can reopen this issue to show this issue to the users whenever. Thanks. :)