This message was posted on behalf of Intel Corporation
Thanks for contacting Intel customer support.
In the following link you will find the recommended installation procedure to properly install ROS for your Realsense camera.
The procedure to get the variables out of ROS and into UDP is something that Intel does not handle since ROS is a completely different organization. It would be recommended for you to rise this question to the ROS community and they may be able to assist you with further details on how to do this. Here is the link to the ROS community.
Thanks for your understanding.