Ask Your Question
0

ROS Hydro Ubuntu Deb Package Compiler Optimizations

asked 2013-12-04 03:09:25 -0500

Raptor gravatar image

updated 2014-04-20 14:09:44 -0500

ngrennan gravatar image

Hi Guys,

I compiled the navigation stack from source, and I noticed a performance change between the package I built, and the package I pulled from the apt-get server. The move_base that I had built, took way more CPU resources than the one that I pulled down from the server. I did make sure they were the same version. I did notice though that the symbols where stripped from the binaries that were pulled down, but mine still had the debug symbols in them.

For the released ROS packages that are pulled down from the apt-get server, what compiler optimizations are used to build those packages? (Release vs Debug and Optimization Level Number) Where/How is this set? Are all packages in the ROS BuildFarm setup with the same optimizations?

How would I get the navigation stack that I pulled down from source compiling with the same optimization flags as the ones that are released as deb packages?

Is there a way to set the optimization flags for all the packages that I am compiling in my catkin workspace?

Thank you

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
5

answered 2013-12-04 04:28:44 -0500

AHornung gravatar image

updated 2013-12-04 04:33:17 -0500

There was exactly the same problem observed in this question (with answer) and a similar one.

Short answer: catkin_make -DCMAKE_BUILD_TYPE=Release

edit flag offensive delete link more

Comments

Thank you.

Raptor gravatar imageRaptor ( 2013-12-04 04:48:35 -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

Stats

Asked: 2013-12-04 03:09:25 -0500

Seen: 345 times

Last updated: Dec 04 '13