How to control unity model from publish a numerical value on ROS

From Unity, I can able to control the infant model assigning numerical values to each joint. Since now I can able to communicate between Unity and ROS how can I

  • publish a numerical value on ROS
  • read this value on Unity and use it to control the infant model?

this appeared to be an intresting unknown topic at first but somehow it makes me wonder if you have tried to ask google before compiling your post:

There is even a Unity page on this here: https://resources.unity.com/unitenow/onlinesessions/simulating-robots-with-ros-and-unity

As there is plenty of resources on this topic available please try to post a question which is a bit more specific if you still have issues.