This repo provides a bare-bones setup for building a sample ros node (that doesn't do anything). It builds, subscribes to a topic and publishes a topic.
I would recommend some refactoring to make the naming fit your purposes.
The creator
branch contains an automatic script that can build a sample node given some prompts.