/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <string> StartCalibrateAsync(this IArm operations, long id, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.StartCalibrateWithHttpMessagesAsync(id, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='x'> /// </param> /// <param name='y'> /// </param> /// <param name='z'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> ConvertPoseToCoordinateAsync(this IArm operations, long id, int x, int y, int z, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ConvertPoseToCoordinateWithHttpMessagesAsync(id, x, y, z, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='timeStamp'> /// </param> /// <param name='x'> /// </param> /// <param name='y'> /// </param> /// <param name='z'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <bool?> ReportPoseAsync(this IArm operations, long id, string timeStamp, int x, int y, int z, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ReportPoseWithHttpMessagesAsync(id, timeStamp, x, y, z, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='x'> /// </param> /// <param name='y'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> ConvertTouchPointToPoseAsync(this IArm operations, long id, double x, double y, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ConvertTouchPointToPoseWithHttpMessagesAsync(id, x, y, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
void OnTriggerEnter(Collider other) { //Debug.Log ("Pickup Arm Collided"); if (other.gameObject.CompareTag("Arm")) { CollectableHighlights collectable = other.gameObject.GetComponent <CollectableHighlights>(); if (collectable != null) { collectable.RemoveHighlights(); other.gameObject.transform.position = connector.transform.position; other.gameObject.transform.rotation = connector.transform.rotation; other.gameObject.transform.parent = connector.transform; currentArm = (IArm)other.gameObject.GetComponent(typeof(IArm)); SetupArm(); } /* * else //legacy code for old prefabs * { * Destroy(other.gameObject); * GameObject newArm = (GameObject)Instantiate(acquiredBuff, connector.transform.position, connector.transform.rotation); * newArm.transform.parent = connector.transform; * //TODO: Check what kind of arm it is, we know it is a sway arm currently * //(ISphereController)transform.parent.GetComponent(typeof(ISphereController)); * currentArm = (IArm)newArm.GetComponent(typeof(IArm)); * } */ } }
public RobotArm(double xShift, double yShift, double minDimensionHalf, IArm arm) { _xShift = xShift; _yShift = yShift; _minDimensionHalf = minDimensionHalf; _arm = arm; }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='taskName'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> NewTaskAsync(this IArm operations, long id, string taskName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.NewTaskWithHttpMessagesAsync(id, taskName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='retry'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <string> ProbAsync(this IArm operations, long id, int retry, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ProbWithHttpMessagesAsync(id, retry, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <long?> RegisterAsync(this IArm operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.RegisterWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
public MrPotatoHead(IHat hat, IArm leftArm, IArm rightArm) { this.hat = hat; this.arms = new IArm[] { leftArm, rightArm }; Console.WriteLine("I'm a new potato!"); hat.Tip(); }
public static ArmViewModel ToModel(this IArm arm) { return(new ArmViewModel { Id = arm.Id, IsActive = arm.IsActive, Name = arm.Name, Code = arm.Code, UpdatedBy = arm.UpdatedBy, UpdatedOn = arm.UpdatedOn, CreatedBy = arm.CreatedBy, CreatedOn = arm.CreatedOn, Description = arm.Description, StudyId = arm.StudyId }); }
public Robot(IArm left, IArm right) { Left = left; Right = right; }
public Person(IPersonFactory IPF) { this.IPF = IPF; Arm = IPF.CreateArm(); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='data'> /// </param> public static void Done(this IArm operations, long id, string data) { Task.Factory.StartNew(s => ((IArm)s).DoneAsync(id, data), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='data'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DoneAsync(this IArm operations, long id, string data, CancellationToken cancellationToken = default(CancellationToken)) { await operations.DoneWithHttpMessagesAsync(id, data, null, cancellationToken).ConfigureAwait(false); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='timeStamp'> /// </param> /// <param name='x'> /// </param> /// <param name='y'> /// </param> public static bool?ReportTouch(this IArm operations, long id, string timeStamp, double x, double y) { return(Task.Factory.StartNew(s => ((IArm)s).ReportTouchAsync(id, timeStamp, x, y), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> public static long?Register(this IArm operations) { return(Task.Factory.StartNew(s => ((IArm)s).RegisterAsync(), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='x'> /// </param> /// <param name='y'> /// </param> public static object ConvertTouchPointToPose(this IArm operations, long id, double x, double y) { return(Task.Factory.StartNew(s => ((IArm)s).ConvertTouchPointToPoseAsync(id, x, y), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='retry'> /// </param> public static string Prob(this IArm operations, long id, int retry) { return(Task.Factory.StartNew(s => ((IArm)s).ProbAsync(id, retry), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='taskName'> /// </param> public static object NewTask(this IArm operations, long id, string taskName) { return(Task.Factory.StartNew(s => ((IArm)s).NewTaskAsync(id, taskName), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='x'> /// </param> /// <param name='y'> /// </param> /// <param name='z'> /// </param> public static object ConvertPoseToCoordinate(this IArm operations, long id, int x, int y, int z) { return(Task.Factory.StartNew(s => ((IArm)s).ConvertPoseToCoordinateAsync(id, x, y, z), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }