a problem which readings from lidar data through node
Hello,
On my Raspberry Pi 2B Ubuntu Mate 1604 running ROS kinetic and is connected Lidar Hokuyo URG-04LX. Data from lidar I needed to get into Matlab 16b running on a laptop.
In Matlab see a list of nodes from ROS, urg_out can even ping from lidar data but I read wrong.
Raspberry Pi is a laptop connected via an Ethernet cable, IP adress settings is OK.
rpi orders:
settings Lidar:
cd ..
cd ..
cd ..
sudu chmod 777 dev/ttyACM0
run roscore:
cd /opt/ros/kinetic/bin
roscore
another console:
cd
cd catkin_ws/devel
./setup.bash
rosrun urg_node urg_node
RPI will establish a master ros to the desired address.
rpi write - streaming data
Matlab code:
clc;
close all;
clear all;
rosshutdown
rosinit ('192.168.1.10')
rostopic list
rostopic info /scan
rs=rossubscriber('scan')
receive(rs, 100)
Matlab write:
Operation terminated by user during robotics.ros.internal.Util/waitUntilTrue (line
67)
In robotics.ros.Subscriber/receive (line 322)
util.waitUntilTrue( @() obj.MessageListener.isNewMessage, timeout );
In Matlab_lidar (line 11)
receive(rs, 100)
The problem is that matlab does not list data from lidar. Please do not know what could be wrong?
Thank you for your help.
"But I read data wrong" sounds like the problem here, but there's nothing in that description that might help debug the issue. You'll get better answers if you post your matlab code and post or describe the output, what you think it should be doing, and what it is actually doing.