Пример #1
0
 public ExternalForceMsg(custom_msgs.LinkMsg linkname, custom_msgs.PositionCustomMsg position, custom_msgs.ForceMsg force, custom_msgs.DurationMsg duration)
 {
     _linkname = linkname;
     _position = position;
     _force    = force;
     _duration = duration;
 }
Пример #2
0
 public ExternalForceMsg(string linkname, Vector3 position, Vector3 force, int duration)
 {
     _linkname = new LinkMsg(linkname);
     _position = new PositionCustomMsg(position.x, position.y, position.z);
     _force    = new ForceMsg(force.x, force.y, force.z);
     _duration = new DurationMsg(duration);
 }
Пример #3
0
 public ExternalForceMsg(JSONNode msg)
 {
     _linkname = new custom_msgs.LinkMsg(msg["linkname"]);
     _position = new custom_msgs.PositionCustomMsg(msg["position"]);
     _force    = new custom_msgs.ForceMsg(msg["force"]);
     _duration = new custom_msgs.DurationMsg(msg["duration"]);
 }