Skip to content

Commit

Permalink
added correspondences visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
amock committed Oct 25, 2022
1 parent 3f32287 commit 0523b01
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 26 deletions.
13 changes: 11 additions & 2 deletions config/examples/micp_velodyne_cpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,20 @@ micp:
combining_unit: cpu
# maximum number of correction steps per second
# lower this to decrease the correction speed but save energy
corr_rate_max: 1000
corr_rate_max: 10
print_corr_rate: False

# adjust max distance dependend of the state of localization
adaptive_max_dist: True # enable adaptive max dist
adaptive_max_dist: False # enable adaptive max dist

# DEBUGGING
# corr = correspondences
print_n_corr: True
print_corr_dist: True
viz_corr: True
# corr = correction
print_corr_rate: False
disable_corr: True

# initial pose changes
trans: [0.0, 0.0, 0.0]
Expand Down
19 changes: 11 additions & 8 deletions config/examples/micp_velodyne_gpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,22 @@ micp:
combining_unit: gpu
# maximum number of correction steps per second
# lower this to decrease the correction speed but save energy
corr_rate_max: 1000
print_corr_rate: False

corr_rate_max: 500

# adjust max distance dependend of the state of localization
adaptive_max_dist: True # enable adaptive max dist
adaptive_max_dist: False # enable adaptive max dist

# TESTING
# async performance
poses: 1
# DEBUGGING
# corr = correspondences
viz_corr: False
# corr = correction
print_corr_rate: False
disable_corr: False

# initial pose changes
trans: [0.0, 0.0, 0.0]
rot: [0.0, 0.0, 0.0] # euler angles (3) or quaternion (4)
rot: [0.0, 0.0, 0.0] # euler angles (3) or quaternion (4)


# describe your sensor setup here
sensors: # list of range sensors - at least one is required
Expand Down
33 changes: 19 additions & 14 deletions config/micp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,24 @@ invert_tf: True

micp:
# merging on gpu or cpu
combining_unit: cpu
combining_unit: gpu
# maximum number of correction steps per second
# lower this to decrease the correction speed but save energy
corr_rate_max: 1000
print_corr_rate: False

# adjust max distance dependend of the state of localization
adaptive_max_dist: True # enable adaptive max dist
adaptive_max_dist: False # enable adaptive max dist

# TESTING
# async performance
poses: 1
# DEBUGGING / VISUALIZATION
# - enable with care. Decreases the processing time a lot
# corr = correspondences
viz_corr: False
# corr = correction
print_corr_rate: False
disable_corr: False

# initial pose changes
trans: [0.0, 0.0, 0.5]
trans: [0.0, 0.0, 0.35]
rot: [0.0, 0.0, 0.0] # euler angles (3) or quaternion (4)

# describe your sensor setup here
Expand All @@ -46,17 +49,19 @@ sensors: # list of range sensors - at least one is required
max_dist: 1.0
adaptive_max_dist_min: 0.15
weight: 10
backend: embree
backend: optix
# sick:
# topic: scan
# micp:
# max_dist: 1.0
# adaptive_max_dist_min: 0.15
# weight: 2.0
# backend: optix
# kinect:
# topic: kinect/depth/image_raw
# model_topic: kinect/rgb/camera_info
# micp:
# max_dist: 0.5
# max_dist: 0.7
# weight: 2.0
# backend: optix
# wheels: # pull robot to the mesh
Expand All @@ -68,18 +73,18 @@ sensors: # list of range sensors - at least one is required
# height: 1
# range_min: 0.0
# range_max: 10.0
# origs: [[ 0.2, 0.15, 0.2], # front left
# [ 0.2, -0.15, 0.2], # front right
# [-0.2, 0.15, 0.2], # rear left
# [-0.2, -0.15, 0.2]] # rear right
# origs: [[ 0.15, 0.18, 0.2], # front left
# [ 0.15, -0.18, 0.2], # front right
# [-0.15, 0.18, 0.2], # rear left
# [-0.15, -0.18, 0.2]] # rear right
# dirs: [[ 0.0, 0.0, -1.0],
# [ 0.0, 0.0, -1.0],
# [ 0.0, 0.0, -1.0],
# [ 0.0, 0.0, -1.0]]
# micp:
# max_dist: 1.0
# adaptive_max_dist_min: 0.2
# weight: 1
# weight: 1.0
# backend: optix
# dont_drive_through_walls:
# ranges: [0.0]
Expand Down
4 changes: 2 additions & 2 deletions launch/micp_localization.launch
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
<!-- <arg name="map" default="$(find uos_gazebo_worlds)/Media/models/floor.dae" /> -->
<!-- <arg name="map" default="$(find uos_gazebo_worlds)/Media/models/sphere.dae" /> -->

<arg name="config" default="$(find rmcl)/config/examples/micp_sick_gpu.yaml"/>
<arg name="config" default="$(find rmcl)/config/micp.yaml"/>

<node pkg="rmcl" type="micp_localization" name="micp_localization" output="screen">
<param name="map_file" type="string" value="$(arg map)" />
<rosparam command="load" file="$(arg config)" />
<remap from="pose_wc" to="/initialpose" />
</node>

</launch>
</launch>

0 comments on commit 0523b01

Please sign in to comment.