Robotics StackExchange | Archived questions

pre / post build events in catkin

Hi all,

Is there a way to specify to catkin that it should perform some custom tasks before/after doing its jobs?

Like a pre/post build event in a build system...

I actually need to declare environment variables before calling catkin and this would be very useful...

Thanks,

Antoine.

Asked by arennuit on 2015-10-01 05:59:30 UTC

Comments

Answers

I am not sure if I understand you question. You say you need to declare environment variables before calling catkin. Doesn't that imply that catkin itself can't help you with that?

Or do you want to set the environment variable for some command within CMake?

If you want to set environment variable in one package to be available to other downstream packages that can be done by environment hook in catkin. For an example how to use environment hooks in a package please see the following links: https://github.com/ros/ros/blob/6e4374fa4bbaea32f7e0311f93fa793b52f19917/core/roslib/CMakeLists.txt#L28 https://github.com/ros/ros/blob/jade-devel/core/roslib/env-hooks/10.ros.sh.em

Maybe you can describe your use case in more detail to enable others to understand it and then give a better answer.

Asked by Dirk Thomas on 2015-10-02 05:47:30 UTC

Comments