Parameterized the input from ROS. The code is ready for tests.