Skip to content

Commit caf9de1

Browse files
committed
Few more comments
1 parent e46f72e commit caf9de1

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/rbiyani_project_5/adventure_slam/src/Localizer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ void Localizer::estimate()
6565
first_angle = first_angle * PI / 180;
6666

6767
curr_shift_y += first_distance * std::sin(first_angle);
68+
// We don't want to account for forward shift obtained through lines at angles at this margin
69+
// since, these are parallel lines in the world and they do not give any idea about the forward shift.
6870
if(!(std::abs(first_angle) < 10 * PI/ 180 || std::abs(first_angle) > 170 * PI / 180 ))
6971
count_y++;
7072
}

src/rbiyani_project_5/adventure_slam/src/adventure_slam.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ LaserScanProcessor::LaserScanProcessor(ros::NodeHandle n_)
5353

5454
void LaserScanProcessor::laser_callback(const sensor_msgs::LaserScan& scan)
5555
{
56-
std::stringstream ss, ss2, ss3, ss4;
57-
std::string s, s2, s3, s4;
5856

5957
// Visual Odom message
6058
nav_msgs::Odometry result_pose;
@@ -69,8 +67,7 @@ void LaserScanProcessor::laser_callback(const sensor_msgs::LaserScan& scan)
6967

7068
float theta, r;
7169
tf::Vector3 v, v_glob, v_glob_vo;
72-
73-
//double shift_x, shift_y, delta_yaw;
70+
7471

7572
for (int i = 0; i < ranges.size(); i++ )
7673
{

0 commit comments

Comments
 (0)