LaserScan in TurtleBot examples
4 次查看(过去 30 天)
显示 更早的评论
Dear friends,
I tried to experiment with the TurtleBot examples in the related robotics toolbox. The issue that I have is that my laserscan is not similar to the example's picture (Exploring Basic Behavior of the TurtleBot). It is just a line
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/151555/image.jpeg)
I don't think that is reasonable for a simulation environment like that
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/151556/image.jpeg)
Is something wrong? I just followed the example like
laser = rossubscriber('/scan');
scan = receive(laser,3)
plot(scan);
0 个评论
回答(1 个)
Sebastian Castro
2015-6-24
The commands certainly look correct. Have you tried changing the maximum scan range to a nondefault value? For example:
plot(scan,'MaximumRange',10);
Also, what happens as you move/rotate the robot? Do the plots change or stay the same?
- Sebastian
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Network Connection and Exploration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!