Пример #1
0
            public ModelMsg(int operation, int type, List <string> objects, List <Vector3> positions)
            {
                _Operation = new Int32Msg("operation", operation);
                _Type      = new Int32Msg("type", type);
                _Objects   = new StringArrayMsg("objects", objects);
                List <float> values = new List <float>();

                foreach (var pos in positions)
                {
                    values.Add(pos.x);
                    values.Add(pos.y);
                    values.Add(pos.z);
                }
                _Positions = new FloatArrayMsg("positions", values);
            }
Пример #2
0
 public ExternalJointMsg(List <string> jointNames, List <float> angles)
 {
     _jointNames = new StringArrayMsg("link_name", jointNames);
     _angles     = new FloatArrayMsg("angle", angles);
 }