Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HOW TO USE RPLIDAR S2 IN MATLAB? #9

Closed
ohsekang opened this issue Nov 18, 2022 · 1 comment
Closed

HOW TO USE RPLIDAR S2 IN MATLAB? #9

ohsekang opened this issue Nov 18, 2022 · 1 comment

Comments

@ohsekang
Copy link

I had used rplidar a1m8 and below code worked well .

now I'm trying to use rplidar s2m1.

rplidar s2 didn't worked in this code and I got result value 1 (value 1 means lidar is not connected with MATLAB)

As I know there are few data about connecting lidar S2M1 to MATLAB.

Do you have any solution about this situation?

hardwarex_init;
pRPLIDAR = CreateRPLIDAR();

% Check and modify the configuration file if needed...
[result] = ConnectRPLIDAR(pRPLIDAR, 'RPLIDAR0.txt')

@lebarsfa
Copy link
Member

Hello, I don't have the device nor much time to investigate right now. However here are some ideas :

If things get too complicated, another completely different approach (which I never tested, it might be not that simple...) could be to try ROS or ROS2 toolbox, see https://fr.mathworks.com/help/ros/index.html , https://github.com/Slamtec/rplidar_ros , https://fr.mathworks.com/help/ros/ug/work-with-specialized-ros-messages.html#WorkWithSpecializedROSMessagesExample-8 . Here also you might need to determine which version of ROS works with your LIDARs, possibly ROS1 Noetic...

@ohsekang ohsekang closed this as completed Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants