You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hello guys, I want to simulate the bag data that I got from ROS in MATLAB. I separated the pose and range data from the bag file. and I wrote a script to plot the laser data and build a map (I assumed that my poses are correct). when I run my code, It works well, till the robot turns!. at that point, the scan data turns in the opposite direction! till the robot gets straight again. and again when the robot turns again I experience the same problem till the robot gets straight. I don't know whats wrong!!...the transformation I used works well except when the robot turn!!
(p.s : green points are scan data)
The text was updated successfully, but these errors were encountered:
@kijongGil
Hi, Thank you for your reply.
I just run SLAM with ROS and used "rosbag record -a" for recording the data, and then used the bag data in MATLAB with the following code:
a=rosbag('bag file name')
b=select(a, 'Time',[a.StartTime a.EndTime], 'Topic', '/scan');
c=readMessages(b);
(and for odometry i used \odom)
P.s--> timing between odometry and scan data was not the same so I catched the odometry data every five step and ignored the rest..
hello guys, I want to simulate the bag data that I got from ROS in MATLAB. I separated the pose and range data from the bag file. and I wrote a script to plot the laser data and build a map (I assumed that my poses are correct). when I run my code, It works well, till the robot turns!. at that point, the scan data turns in the opposite direction! till the robot gets straight again. and again when the robot turns again I experience the same problem till the robot gets straight. I don't know whats wrong!!...the transformation I used works well except when the robot turn!!
(p.s : green points are scan data)
The text was updated successfully, but these errors were encountered: