1 #ifndef SIM_VIEW_PROGRAM 2 #define SIM_VIEW_PROGRAM 4 #include "WorldViewProgram.h" 5 #include <Klampt/Simulation/Simulator.h> 6 #include <Klampt/Control/PathController.h> 8 #if HAVE_GLUT || HAVE_GLUI 13 PolynomialMotionQueue* GetMotionQueue(RobotController* rc);
22 class SimViewProgram :
public WorldViewProgram
25 SimViewProgram(WorldModel* world);
28 bool LoadAndInitSim(
const char* xmlFile);
31 bool LoadAndInitSim(
int argc,
const char** argv);
40 virtual void RenderWorld();
43 void DrawContacts(Real pointSize = 5.0, Real fscale = 0.01, Real nscale=0.05);
45 void DrawWrenches(Real fscale=-1);
48 bool LoadMilestones(
const char* fn);
51 bool LoadLinearPath(
const char* fn);
54 bool LoadState(
const char* fn);
57 bool LoadMultiPath(
const char* fn,
bool constrainedInterpolate=
true,Real interpolateTolerance=1e-2,Real durationScale=1.0);
61 bool SendLinearPath(
const vector<Real>& times,
const vector<Config>& milestones,Real pathDelay=0.5);
64 void DoLogging(
const char* fn=
"simtest_log.csv");
73 #endif //HAVE_GLUT || HAVE_GLUI Definition: ContactDistance.h:6