ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

ROS Hydro Ubuntu Deb Package Compiler Optimizations

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

Raptor gravatar image

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

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

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

AHornung gravatar image

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

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


Thank you.

Raptor gravatar image Raptor  ( 2013-12-04 04:48:35 -0600 )edit

Question Tools

1 follower


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

Seen: 462 times

Last updated: Dec 04 '13