Your can find more information about how to use ROS 2 with VxWorks here:
https://github.com/Wind-River/vxworks7-layer-for-ros2