Beispiel #1
0
        private void OnBodyUpdated(object sender, BodyEventArgs e)
        {
            _fpsWatcherFrameArrived.Count();

            RobotJointAngles.SetAnglesFromBody(e.Body);

            AngleOutputs = RobotJointAngles.Angles
                           .Select(f => float.IsNaN(f) ? 0.0f : f)
                           .ToArray();
            AngleUpdated?.Invoke(this, EventArgs.Empty);
        }
Beispiel #2
0
        private void OnBodyUpdated(object sender, BodyEventArgs e)
        {
            _fpsWatcherFrameArrived.Count();

            RobotJointAngles.SetAnglesFromBody(e.Body);

            AngleOutputs = RobotJointAngles.Angles
                .Select(f => float.IsNaN(f) ? 0.0f : f)
                .ToArray();
            AngleUpdated?.Invoke(this, EventArgs.Empty);
        }