Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wolf_ros_laser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
mobile_robotics
wolf_projects
wolf_ros
wolf_ros_laser
Commits
ec76f69a
Commit
ec76f69a
authored
4 years ago
by
Joaquim Casals Buñuel
Browse files
Options
Downloads
Patches
Plain Diff
Comment color code for pointclouds
parent
3c8e149a
No related branches found
No related tags found
2 merge requests
!4
new release
,
!3
New release
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/publisher_pointcloud.cpp
+6
-0
6 additions, 0 deletions
src/publisher_pointcloud.cpp
with
6 additions
and
0 deletions
src/publisher_pointcloud.cpp
+
6
−
0
View file @
ec76f69a
...
...
@@ -114,6 +114,12 @@ pcl::PointCloud<pcl::PointXYZRGB> PublisherPointcloud::buildPointCloud(const Pro
// pack r/g/b into rgb
uint8_t
r
,
g
,
b
;
// Example: Red color
double
z
=
0
;
//Color code:
//Most recent capture -> orange points
//Second most recent capture -> red points
//Third most recent capture -> green points
//Forth most recent capture -> blue points
//Other -> "lavender" points
switch
(
counter
)
{
case
0
:
r
=
255
;
...
...
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