Ask Your Question

How to assign a color to each pcd file when viewing multiple files with pcl_viewer from the terminal

asked 2016-04-21 07:15:17 -0500

Abdallah sobehy gravatar image

updated 2016-04-26 06:22:41 -0500

To visualize multiple point clouds concurrently I use

pcl_viewer file1.pcd file2.pcd

pcl_viewer then assigns random colors to each file but I can not relate which color represents which file. Is it possible to manually assign a color to each pcd file ?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2016-04-26 09:02:05 -0500

Abdallah sobehy gravatar image

With many trials I noticed that the options specified when using the pcl_viewer command only affects the very next file after it. So, to give different colors for each file simply add the color option with the wanted rgb values before each file as follows:

pcl_viewer -fc 0,0,255 file1.pcd -fc 0,255,0 file2.pcd

edit flag offensive delete link more

answered 2016-04-26 08:16:46 -0500

No, I don't think that's possible.

edit flag offensive delete link more



It is, check my answer.

Abdallah sobehy gravatar image Abdallah sobehy  ( 2016-04-26 09:02:38 -0500 )edit

Nice! I upvoted your answer.

Martin Günther gravatar image Martin Günther  ( 2016-04-26 10:00:44 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2016-04-21 07:15:17 -0500

Seen: 817 times

Last updated: Apr 26 '16