Added serialisation for the primitive types available in a ros message. Fixed a bug when sending non string messages.