private void RaiseNewPoseEvent() { var handler = NewPose; if (handler != null) { Pose newPose = new Pose(m_RobotPose.Location, m_RobotPose.Heading); var e = new PoseEventArgs(newPose); handler(this, e); } }