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

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

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

theosakamg gravatar image

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

130s gravatar image

Hi,

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 https://github.com/rosalfred

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)

Thank

edit retag flag offensive close merge delete

Comments

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 -0500 )edit
ChriMo gravatar image ChriMo  ( 2016-05-30 05:40:16 -0500 )edit

When i push the packages stack to ROS DISTRO. The ROS team ask to make my package name more specific. https://github.com/ros/rosdistro/pull... 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 -0500 )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 -0500 )edit
1

@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 -0500 )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 -0500 )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 -0500 )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 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

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

gvdhoorn gravatar image

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

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

Question Tools

2 followers

Stats

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

Seen: 545 times

Last updated: Jun 14 '17