private static object DeserializeActionResult(SerializationContext context, RosBinaryReader reader, IRosMessageTypeInfo messageTypeInfo, RosMessageSerializer serializer)
        {
            var header     = Deserialize <Header>(context, reader);
            var goalStatus = Deserialize <GoalStatus>(context, reader);
            var partialMessageDeserializer = PartialMessageDeserializer.CreateFromStream(context.Stream, serializer);

            return(new ActionResult(header, goalStatus, partialMessageDeserializer));
        }
        private static ActionGoal DeserializeActionGoal(SerializationContext context, RosBinaryReader reader, IRosMessageTypeInfo messageTypeInfo, RosMessageSerializer serializer)
        {
            var header = Deserialize <Header>(context, reader);
            var goalId = Deserialize <GoalID>(context, reader);
            var partialMessageDeserializer = PartialMessageDeserializer.CreateFromStream(context.Stream, serializer);

            return(new ActionGoal(header, goalId, partialMessageDeserializer));
        }