ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Practice to make new ROS Stack as generic as possible (home/building automation)

asked 2016-05-29 11:35:15 -0600

theosakamg gravatar image

updated 2017-06-14 13:46:52 -0600

130s gravatar image


I work with a little team to make a variation of ROS for Home Automation (same philosophy as ROS-Industrial) all the code is available on

But how to name the package more specific ? and make my sensor msg generic for all other project of the same type ? (best efforts for the community)


edit retag flag offensive close merge delete


But how to name the package more specific

I think you'll need to clarify this question a little: what do you mean exactly?

gvdhoorn gravatar image gvdhoorn  ( 2016-05-30 01:58:42 -0600 )edit
ChriMo gravatar image ChriMo  ( 2016-05-30 05:40:16 -0600 )edit

When i push the packages stack to ROS DISTRO. The ROS team ask to make my package name more specific. I don't want to rename it (and dependencies) many time. And I ask the community of ROS to help me to choose a name "generic" for Home automation.

theosakamg gravatar image theosakamg  ( 2016-05-30 05:43:45 -0600 )edit

I know the bridge to OpenHab. But I start my project 2 years ago (the bridge is come after...). And is not the same target. In my case the home know her environment (for example howto connect openHab on octomap ?)

theosakamg gravatar image theosakamg  ( 2016-05-30 05:50:57 -0600 )edit

@ChriMo: your post was not an answer, so I moved it to the comment section.

gvdhoorn gravatar image gvdhoorn  ( 2016-05-30 06:01:42 -0600 )edit

@theosakamg: in ROS-Industrial we typically prefix package names with the name of the mfg (for hw i'faces), or with the name of a project. In your case that could be alfred (just an example).

gvdhoorn gravatar image gvdhoorn  ( 2016-05-30 06:03:18 -0600 )edit

If we rename all "generic" package with smarthome_ ( eg: smarthome_media_msgs , smarthome_heater_msgs ... ) . And keeps my specific stack (not generic) of our porject with the prefix alfred_ . It is ok for all ?

theosakamg gravatar image theosakamg  ( 2016-05-30 13:09:51 -0600 )edit

I can't speak for everyone, but prefixing everything will most likely address the main concern of @tfoote. What that prefix should be is more of a subjective matter.

Btw: see also REP-144 for some guidelines on package naming.

gvdhoorn gravatar image gvdhoorn  ( 2016-05-30 14:52:17 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-05-30 06:04:09 -0600

gvdhoorn gravatar image

updated 2016-05-30 06:05:29 -0600

re: how to make msgs generic: by encoding as few assumptions about use-cases as possible in them (their names, their fields, etc). If you start assuming your msgs will be used in a certain way, or only with certain nodes, that reduces re-usability drastically when those conditions aren't met.

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools



Asked: 2016-05-29 11:35:15 -0600

Seen: 486 times

Last updated: Jun 14 '17