5 #include "API/Device/robot.hpp"
8 #include "Logging/socketplot.h"
28 void addDof(
Robot *r,
Joint* j,
int dof_index,
double min=-std::numeric_limits<double>::infinity(),
double max=std::numeric_limits<double>::infinity(),
double step=0);
35 double firstSample(std::vector<double> &dof_values);
41 double nextSample(std::vector<double> &dof_values);
49 double getDofValue(
unsigned int i);
52 void saveRobotConfs();
53 void restoreRobotConfs();
55 unsigned int defaultSampleNbPerJnt()
const;
56 void setDefaultSampleNbPerJnt(
unsigned int defaultSampleNbPerJnt);
58 void setAndUpdateJointDof(
Joint* j,
int dof,
double val);
66 std::vector<std::pair<Joint*,int> > _dofs;
67 std::vector<double> _curValues;
68 std::set<Robot*> _robots_to_update;
70 unsigned int _defaultSampleNbPerJnt;
71 std::vector<Configuration> _savedConf;
73 std::vector<double> _steps,_min,_max;
74 std::string _name,_name_traj;
77 #endif // COSTMAPPLOT_H
double moveJointNextSample(unsigned int i, bool &reached_extreme)
moveJointNextSample
Definition: costMapPlot.cpp:231
Definition: socketplot.h:11
void plotCurrentTraj()
plot the cost of the trajcetory projected into the selected DoFs
Definition: costMapPlot.cpp:57
This class holds a the robot represented by a kinematic chain.
Definition: robot.hpp:42
double nextSample(std::vector< double > &dof_values)
nextSample move joints to next sample position
Definition: costMapPlot.cpp:125
This file implements macros to help with the logging, in a way similar to ROS, using log4cxx...
double firstSample(std::vector< double > &dof_values)
firstSample move joints to the initial position for the sampling and compute cost ...
Definition: costMapPlot.cpp:103
This class holds a Joint and is associated with a Body (Link) It's the basic element of a kinematic c...
Definition: joint.hpp:27
The CostMapPlot class samples the configuration space on a few DoF to plot a costmap.
Definition: costMapPlot.h:14