Best practices to load collision world
ROS kinetic, Ubuntu 16.04, kernel 4.8.15-rt10
Since finishing the Move Group C++ tutorial, I have created a node that adds the collision objects for my own robotic arm setup to avoid collisions when planning (e.g. with the table the arm is mounted on). At the moment I don't have sensors to create an octomap and such, so this is an acceptable starting point.
What are the best practices be to load default collision objects (not temporary ones, visible from sensors)?
E.g. I'm imagining it could be possible to have the very same node I wrote be roslaunch-ed together with controllers at startup, but wouldn't it be better to have somehow just a method in the main routine that loads a generic collision object from within a folder? Maybe have a folder containing a file with the laboratory/shop floor setup (or a file per object)? This way the code could be reused with a toggle for the environment the robot is being tested in.
This might be a bit more philosophical/design-oriented than it should be, but I feel I don't understand ROS enough yet to not pose the question.