Neodroid  0.2.0
Machine Learning Environment Prototyping Tool
MotorMotion.cs
Go to the documentation of this file.
1 using System;
3 
4 namespace droid.Runtime.Messaging.Messages {
8  [Serializable]
9  public class ActuatorMotion : IMotion {
10  public ActuatorMotion(string actor_name, string actuator_name, float strength) {
11  this.ActorName = actor_name;
12  this.ActuatorName = actuator_name;
13  this.Strength = strength;
14  }
15 
18  public float Strength { get; set; }
19 
22  public string ActorName { get; }
23 
26  public string ActuatorName { get; }
27 
31  public override string ToString() {
32  return "<ActuatorMotion> "
33  + this.ActorName
34  + ", "
35  + this.ActuatorName
36  + ", "
37  + this.Strength
38  + " </ActuatorMotion>";
39  }
40  }
41 }
Has a possible direction given by the sign of the float in strength
Definition: MotorMotion.cs:9
ActuatorMotion(string actor_name, string actuator_name, float strength)
Definition: MotorMotion.cs:10