libmove3d  3.13.0
Functions
/home/slemaign/softs-local/BioMove3D-git/planner/p3d_potential.c File Reference

gradient descent algorithm More...

#include "Util-pkg.h"
#include "P3d-pkg.h"
#include "Localpath-pkg.h"
#include "Collision-pkg.h"
#include "Planner-pkg.h"

Functions

int p3d_projectedGradientDescent (p3d_rob *rob, p3d_strippoint *sp, double d0, configPt q, int *ntest)
 calculate the new strippoint configuration with a gradient descent method
int p3d_quickGradientDescent (p3d_rob *rob, p3d_strippoint *sp, double d0, configPt q, int *ntest)
 descend the gradient without projection

Detailed Description

gradient descent algorithm

Author:
E.Ferre
Date:
Aug 2001

Set of functions for gradient calculation, projection on the configuration space and gradient descent


Function Documentation

int p3d_projectedGradientDescent ( p3d_rob rob,
p3d_strippoint sp,
double  d0,
configPt  q,
int *  ntest 
)

calculate the new strippoint configuration with a gradient descent method

Parameters:
robthe robot
spthe strippoint
d0minimal distance from obstacles
Return values:
qthe new config.(must be allocated)
ntestnumber of collision test is added
Returns:
TRUE if q is different from sp->q
p3d_quickGradientDescent ( p3d_rob rob,
p3d_strippoint sp,
double  d0,
configPt  q,
int *  ntest 
)

descend the gradient without projection

Parameters:
robthe robot
spthe strippoint
d0minimal distance from obstacles
Return values:
qthe new config.(must be allocated)
ntestnumber of collision test is added
Returns:
TRUE if q is different from sp->q
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines