public ServiceClient <MSrv> serviceClient <MSrv>(ServiceClientOptions ops)
            where MSrv : IRosService, new()

        {
            if (started_by_visual_studio)
            {
                return(null);
            }
            ops.service = resolveName(ops.service);
            ops.md5sum  = new MSrv().RequestMessage.MD5Sum();
            return(new ServiceClient <MSrv>(ops.service, ops.persistent, ops.header_values, ops.md5sum));
        }
 public ServiceClient <MReq, MRes> serviceClient <MReq, MRes>(ServiceClientOptions ops)
     where MReq : IRosMessage, new()
     where MRes : IRosMessage, new()
 {
     if (started_by_visual_studio)
     {
         return(null);
     }
     ops.service = resolveName(ops.service);
     ops.md5sum  = new MReq().MD5Sum();
     return(new ServiceClient <MReq, MRes>(ops.service, ops.persistent, ops.header_values, ops.md5sum));
 }