Skip to content

Commit

Permalink
Testing done with good results
Browse files Browse the repository at this point in the history
  • Loading branch information
patweatharva committed May 15, 2024
1 parent 33eb10b commit d76aeed
Show file tree
Hide file tree
Showing 7 changed files with 28,400 additions and 38,455 deletions.
2 changes: 1 addition & 1 deletion include/graph_slam_node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ void graph_slam_handler::scanCB(const turtlebot_graph_slam::tfArrayConstPtr &sca
// add initial estimates composing logic
if (i == 0)
{
current_pose_ = current_pose_.compose(odometry);
current_pose_ = current_pose_.compose(scan_pose);
initial_estimates_.insert(X(index_), current_pose_);

// add odom factor to the graph
Expand Down
4 changes: 2 additions & 2 deletions include/scan_match_node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ class ScanHandler
try
{
ros::Time start_time_ = ros::Time::now();
// projector_.transformLaserScanToPointCloud("turtlebot/kobuki/base_footprint", *scan, cloud_in, listener_);
projector_.projectLaser(*scan,cloud_in);
projector_.transformLaserScanToPointCloud("turtlebot/kobuki/base_footprint", *scan, cloud_in, listener_);
// projector_.projectLaser(*scan,cloud_in);

current_scan_odom_ = current_odom_;
current_scan_odom_.header.frame_id = std::to_string(current_scan_index);
Expand Down
2 changes: 1 addition & 1 deletion launch/env.launch
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<rosparam file="$(find turtlebot_graph_slam)/config/params.yaml" command="load"/>

<!-- StoneFish simulator -->
<include file="$(find turtlebot_simulation)/launch/turtlebot_integration.launch" />
<!-- <include file="$(find turtlebot_simulation)/launch/turtlebot_integration.launch" /> -->

<!-- Environment node -->
<node pkg="turtlebot_graph_slam" type="turtlebot_teleop_convert_node.py" name="turtlebot_teleop_convert_node"/>
Expand Down
Loading

0 comments on commit d76aeed

Please sign in to comment.