Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kf_based_terrain_analysis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Iván del Pino
kf_based_terrain_analysis
Commits
8c34a7c8
Commit
8c34a7c8
authored
2 years ago
by
Iván del Pino
Browse files
Options
Downloads
Patches
Plain Diff
added heuristic to label points outside the local area analysis as ground or obstacles
parent
152984bb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/structs_definitions.h
+1
-0
1 addition, 0 deletions
include/structs_definitions.h
src/kf_based_terrain_analysis.cpp
+10
-0
10 additions, 0 deletions
src/kf_based_terrain_analysis.cpp
with
11 additions
and
0 deletions
include/structs_definitions.h
+
1
−
0
View file @
8c34a7c8
...
@@ -126,6 +126,7 @@ namespace kf_based_terrain_analysis_lib
...
@@ -126,6 +126,7 @@ namespace kf_based_terrain_analysis_lib
struct
FilteringConfiguration
struct
FilteringConfiguration
{
{
float
robot_height
;
float
robot_height
;
float
ground_threshold_in_not_analyzed_areas
;
float
ROI_delta_x_and_y
;
float
ROI_delta_x_and_y
;
float
ROI_shadow_area
;
float
ROI_shadow_area
;
...
...
This diff is collapsed.
Click to expand it.
src/kf_based_terrain_analysis.cpp
+
10
−
0
View file @
8c34a7c8
...
@@ -1117,6 +1117,16 @@ void CKf_Based_Terrain_Analysis::labelPointcloudUsingGroundModel(
...
@@ -1117,6 +1117,16 @@ void CKf_Based_Terrain_Analysis::labelPointcloudUsingGroundModel(
//std::cout << "obstacle z distance from ground = " << pcl_cloud_ptr->points[*point_iterator].z - point_in_sensor_frame.z << std::endl;
//std::cout << "obstacle z distance from ground = " << pcl_cloud_ptr->points[*point_iterator].z - point_in_sensor_frame.z << std::endl;
if
((
pcl_cloud_ptr
->
points
[
*
point_iterator
].
z
-
point_in_sensor_frame
.
z
)
if
((
pcl_cloud_ptr
->
points
[
*
point_iterator
].
z
-
point_in_sensor_frame
.
z
)
<
filtering_configuration
.
ground_threshold_in_not_analyzed_areas
)
{
pcl_cloud_ptr
->
points
[
*
point_iterator
].
r
=
R_CLASS_GROUND
;
// We use instead the r g b channels directly
pcl_cloud_ptr
->
points
[
*
point_iterator
].
g
=
G_CLASS_GROUND
;
pcl_cloud_ptr
->
points
[
*
point_iterator
].
b
=
B_CLASS_GROUND
;
float
score
=
0.01
;
// we don't have too much confidence in these points, because they are not analyzed
pcl_cloud_ptr
->
points
[
*
point_iterator
].
data_c
[
DATA_C_1_ID_CLASS
]
=
(
float
)
CLASS_GROUND
+
score
;
}
else
if
((
pcl_cloud_ptr
->
points
[
*
point_iterator
].
z
-
point_in_sensor_frame
.
z
)
<
filtering_configuration
.
robot_height
)
<
filtering_configuration
.
robot_height
)
{
{
// data_c[0] is reserved to cast the RGB values into a float (PCL convention) so we do not use it
// data_c[0] is reserved to cast the RGB values into a float (PCL convention) so we do not use it
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment