Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LOAM based localization #7454

Closed
9 tasks done
ataparlar opened this issue Apr 3, 2024 · 6 comments
Closed
9 tasks done

LOAM based localization #7454

ataparlar opened this issue Apr 3, 2024 · 6 comments
Assignees
Labels
component:localization Vehicle's position determination in its environment. (auto-assigned) type:new-feature New functionalities or additions, feature requests.

Comments

@ataparlar
Copy link
Contributor

ataparlar commented Apr 3, 2024

Checklist

  • I've read the contribution guidelines.
  • I've searched other issues and no duplicate issues were found.
  • I've agreed with the maintainers that I can plan this task.

Blocked by

Description

LOAM based localization feature provides more robust and reliable localization for an ego vehicle in tunnels. This is a different localization feature than the current ones. This task is getting done under the Autoware Labs for Localization & Mapping Tasks.

This task has a mapping part. The link to the LOAM mapping task:

For the development and testing of the feature, edge and surface feature pcd maps of YTU campus will be published. Here is the link to the data:

Purpose

Establishing localization for ego vehicles in LOAM feature maps. Make it a localization package in Autoware.

Possible approaches

  • Use the feature layers coming from the LOAM continuously to localize with the vehicle.
  • Optimize the output pose continuously.

Definition of done

@ataparlar
Copy link
Contributor Author

An issue for creating the point clouds is opened. Here is the link:

Additionally, this comment contains the details for using the data:

@ataparlar ataparlar self-assigned this Apr 4, 2024
@ataparlar ataparlar added type:new-feature New functionalities or additions, feature requests. component:localization Vehicle's position determination in its environment. (auto-assigned) labels Apr 4, 2024
@ataparlar
Copy link
Contributor Author

Hi everyone,

I have uploaded some data for testing and developing the package. LOAM feature maps can be found in this link:

After we have complete the below task it can be used for this package and LOAM mapping too.

@xmfcx xmfcx transferred this issue from autowarefoundation/autoware Jun 11, 2024
@ataparlar
Copy link
Contributor Author

I have created this fork and branch for this task:

Currently working on this.

@ataparlar ataparlar moved this from Todo to In Progress in Autoware Labs Jun 25, 2024
Copy link

stale bot commented Sep 7, 2024

This pull request has been automatically marked as stale because it has not had recent activity.

@stale stale bot added the status:stale Inactive or outdated issues. (auto-assigned) label Sep 7, 2024
@ataparlar ataparlar removed this from Autoware Labs Oct 2, 2024
@ataparlar ataparlar moved this to In Progress in Software Working Group Oct 3, 2024
@ataparlar
Copy link
Contributor Author

ataparlar commented Oct 8, 2024

Steps to Run the Code

Prepare the Data & Build

  • Download the point clouds data:
mkdir -p ~/loam_based_localization_data/point_clouds
gdown --id 1OkSN53n-3BjAcU_gLzs5Il8IOFsWTnIa -O ~/loam_based_localization_data/point_clouds/
gdown --id 1YOSu9Bp32XgO643jNkZ7lGuSCYOcigwU -O ~/loam_based_localization_data/point_clouds/
  • Download the rosbag data (rosbag size is nearly 60gb):
mkdir -p ~/loam_based_localization_data/test_rosbag
gdown --id 1uta5Xr_ftV4jERxPNVqooDvWerK0dn89 -O ~/loam_based_localization_data/test_rosbag/ 
gdown --id 10tw3sBZzVAiu9gWbB4mMclGuzY2-86In -O ~/loam_based_localization_data/test_rosbag/  
  • Install the dependencies:
sudo apt install ros-humble-perception-pcl \
  	   ros-humble-pcl-msgs \
  	   ros-humble-vision-opencv \
  	   ros-humble-xacro
sudo add-apt-repository ppa:borglab/gtsam-release-4.1
sudo apt install libgtsam-dev libgtsam-unstable-dev
mkdir -p ~/loam_localization_ws/src/
cd ~/loam_localization_ws/src/
git clone -b local-map https://github.com/ataparlar/LIO-SAM.git
  • You need to change the point cloud file path at the line 11 and 12 in the config/params.yaml file in the package.
    • For instance it must be:
      cornerPointCloudPath:  "/home/ataparlar/loam_based_localization_data/point_clouds/tunnel_local_corner.pcd"
      surfacePointCloudPath: "/home/ataparlar/loam_based_localization_data/point_clouds/tunnel_local_surface.pcd"
    
cd ~/loam_localization_ws/
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release

Run

  • Source the environment and launch.
source ~/loam_localization_ws/install/setup.bash
ros2 launch lio_sam run.launch.py
  • Run the rosbag in another terminal:
source ~/loam_localization_ws/install/setup.bash
cd ~/loam_based_localization_data/
ros2 bag play test_rosbag/ --remap /tf_static:=/asd --start-offset 711

@stale stale bot removed the status:stale Inactive or outdated issues. (auto-assigned) label Oct 8, 2024
@xmfcx
Copy link
Contributor

xmfcx commented Nov 26, 2024

@ataparlar I'm closing this task since it won't be worked on anymore. Please feel free to reopen if you want to work on it again.

@xmfcx xmfcx closed this as completed Nov 26, 2024
@xmfcx xmfcx closed this as not planned Won't fix, can't repro, duplicate, stale Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:localization Vehicle's position determination in its environment. (auto-assigned) type:new-feature New functionalities or additions, feature requests.
Projects
Status: In Progress
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants