check eus2 permission in msg/srv generation on rosbuild

check eus2 permission on every macro used in rosbuild