Files
jube-fork/Accord.Math/Kinematics/DenavitHartenbergParameter.cs
richard-churchman cc0a2bee21 Extensive modifications to the serialisation of Neural Network models to support Newtonsoft Json.net rather than Binary Serializer.
Included open-source Accord.net library code natively to the solution given the deprecated state of that project.  Accord.net will be supported inside Jube for own needs (such as upgrading to .Net 7+).

Accord.net libraries modified to compile to .Net 6.

Modified Accord.net libraries to better support Newtonsoft Json.net serialisation.

Included annotations in the Accord.net libraries to house important dependency statistics. Serialised json can be used independently of Jube to recall a Neural Network.

Removal of Binary Serializer totally as a precursor to the projects support of .Net 7+.

Extensive bug fixing in crucial functions of Neural Network training and recall.  While this part of the system remains in Alpha, it is substantially more fit for purpose.
2023-12-24 10:22:22 +01:00

92 lines
3.0 KiB
C#

// Accord Math Library
// The Accord.NET Framework
// http://accord-framework.net
//
// Copyright © Rémy Dispagne, 2013
// cramer at libertysurf.fr
//
// Copyright © César Souza, 2009-2017
// cesarsouza at gmail.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
//
namespace Accord.Math.Kinematics
{
using System;
using Accord.Compat;
/// <summary>
/// Denavit Hartenberg joint-description parameters.
/// </summary>
///
[Serializable]
public class DenavitHartenbergParameters
{
/// <summary>
/// Angle in radians about common normal, from
/// old <c>z</c> axis to the new <c>z</c> axis.
/// </summary>
///
public double Alpha { get; set; }
/// <summary>
/// Angle in radians about previous <c>z</c>,
/// from old <c>x</c> to the new <c>x</c>.
/// </summary>
///
public double Theta { get; set; }
/// <summary>
/// Length of the joint (also known as <c>a</c>).
/// </summary>
///
public double Radius { get; set; }
/// <summary>
/// Offset along previous <c>z</c> to the common normal (also known as <c>d</c>).
/// </summary>
///
public double Offset { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="DenavitHartenbergParameters"/> class.
/// </summary>
///
/// <param name="alpha">Angle (in radians) of the Z axis relative to the last joint.</param>
/// <param name="theta">Angle (in radians) of the X axis relative to the last joint.</param>
/// <param name="radius">Length or radius of the joint.</param>
/// <param name="offset">Offset along Z axis relatively to the last joint.</param>
///
public DenavitHartenbergParameters(double alpha, double theta, double radius, double offset)
{
this.Alpha = alpha;
this.Theta = theta;
this.Radius = (float)radius;
this.Offset = (float)offset;
}
/// <summary>
/// Denavit Hartenberg parameters constructor
/// </summary>
///
public DenavitHartenbergParameters()
{
}
}
}