Implemented prototype function for running the ROS node.