The genom3-ros template (see meta-pkgs/ros-base) provides a GenoM3 template for generating ros-based components.