Code Monkey home page Code Monkey logo

Comments (16)

tazel7885 avatar tazel7885 commented on May 24, 2024 1

path

this is git result

from lidar_localization_ros2.

rsasaki0109 avatar rsasaki0109 commented on May 24, 2024

Is map_path set correctly? Please check it in the terminal output.

map_path: "/home/sasaki/github_ws/ros2_ws/src/pcl_localization_ros2/map/bin_tc-2017-10-15--ndmap.pcd"
https://github.com/rsasaki0109/pcl_localization_ros2/blob/main/param/localization.yaml#L12

RCLCPP_INFO(get_logger(),"map_path: %s", map_path_.c_str());
https://github.com/rsasaki0109/pcl_localization_ros2/blob/main/src/pcl_localization_component.cpp#L178

from lidar_localization_ros2.

rsasaki0109 avatar rsasaki0109 commented on May 24, 2024

what's your perception_pcl library?
https://github.com/ros-perception/perception_pcl <- is that??

Yes, this package is using pcl_conversions from perception_pcl.

from lidar_localization_ros2.

tazel7885 avatar tazel7885 commented on May 24, 2024

https://github.com/rsasaki0109/lidarslam_ros2

i make pcd map using above git. And data is hdl_400.bag

But my result is bad.

i use parameter under!

is there any wrong?

/**:
ros__parameters:
registration_method: "NDT"
ndt_resolution: 3.0
ndt_step_size: 0.1
transform_epsilon: 0.01
voxel_leaf_size: 1.0
scan_max_range: 100.0
scan_min_range: 1.0
scan_period: 0.1
use_pcd_map: true
map_path: "/home/tazel7885/ros2_ws/src/pcl_localization_ros2/map/map.pcd"
set_initial_pose: true
initial_pose_x: 0.0
initial_pose_y: 0.0
initial_pose_z: 0.0
initial_pose_qx: 0.0
initial_pose_qy: 0.0
initial_pose_qz: 0.0
initial_pose_qw: 1.0
use_odom: false
use_imu: true
enable_debug: true

from lidar_localization_ros2.

tazel7885 avatar tazel7885 commented on May 24, 2024

Screenshot from 2023-03-30 18-55-31

from lidar_localization_ros2.

tazel7885 avatar tazel7885 commented on May 24, 2024

my result

from lidar_localization_ros2.

rsasaki0109 avatar rsasaki0109 commented on May 24, 2024

I'll check.

from lidar_localization_ros2.

rsasaki0109 avatar rsasaki0109 commented on May 24, 2024

use_imu should be false for once.
ndt_resolution and voxel_leaf_size may be too large. Could you try with the following parameter set?

  ndt_resolution voxel_leaf_size
1 2.0 1.0
2 2.0 0.5
3 1.0 0.5
4 1.0 0.2

from lidar_localization_ros2.

tazel7885 avatar tazel7885 commented on May 24, 2024

i test all. but result is same.

Just in case, it seems that the map data and sensor data do not match inside the code. Is there any way to check if the map has been loaded from inside the code?

from lidar_localization_ros2.

rsasaki0109 avatar rsasaki0109 commented on May 24, 2024

Is there any way to check if the map has been loaded from inside the code?

Currently, there is no such function, but you can have the message output at the following

https://github.com/rsasaki0109/pcl_localization_ros2/blob/main/src/pcl_localization_component.cpp#L76-L96

from lidar_localization_ros2.

rsasaki0109 avatar rsasaki0109 commented on May 24, 2024

It was confirmed that localization is possible with the following parameters

/**:
    ros__parameters:
      registration_method: "GICP"
      ndt_resolution: 1.0
      ndt_step_size: 0.1
      transform_epsilon: 0.01
      voxel_leaf_size: 0.5
      scan_max_range: 100.0
      scan_min_range: 1.0
      scan_period: 0.1
      use_pcd_map: true
      map_path: "/home/map4/Downloads/hdl_data/map.pcd"
      set_initial_pose: true
      initial_pose_x: 0.0
      initial_pose_y: 0.0
      initial_pose_z: 0.0
      initial_pose_qx: 0.0
      initial_pose_qy: 0.0
      initial_pose_qz: 0.0
      initial_pose_qw: 1.0
      use_odom: false
      use_imu: false
      enable_debug: true

image

from lidar_localization_ros2.

tazel7885 avatar tazel7885 commented on May 24, 2024

Thanks!

I have some questions!

If I want to add odom information, can I add it in m units?

Have you ever turned the above algorithm into a camera point cloud?

from lidar_localization_ros2.

rsasaki0109 avatar rsasaki0109 commented on May 24, 2024

Odometry information needs to be input in meters according to the ROS specifications.
I have never used an input point cloud from a camera.

from lidar_localization_ros2.

tazel7885 avatar tazel7885 commented on May 24, 2024

Will it be a problem when using the camera's point cloud?

from lidar_localization_ros2.

rsasaki0109 avatar rsasaki0109 commented on May 24, 2024

I think you need to do a better job of parameter tuning because the accuracy of the scan point cloud is poor and the FoV is small with cameras compared to LiDAR.

from lidar_localization_ros2.

rsasaki0109 avatar rsasaki0109 commented on May 24, 2024

The issue regarding the title seems to have been resolved, so we will be closing this matter. If you have any further concerns, please feel free to open a new issue.

from lidar_localization_ros2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.