Exemple #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);
        }
        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);
        }