Drake
rod2d_sim.cc File Reference
#include <cmath>
#include <iomanip>
#include <limits>
#include <memory>
#include <gflags/gflags.h>
#include "drake/common/text_logging.h"
#include "drake/common/text_logging_gflags.h"
#include "drake/examples/rod2d/rod2d.h"
#include "drake/lcm/drake_lcm.h"
#include "drake/lcmt_viewer_draw.hpp"
#include "drake/lcmt_viewer_load_robot.hpp"
#include "drake/systems/analysis/implicit_euler_integrator.h"
#include "drake/systems/analysis/runge_kutta3_integrator.h"
#include "drake/systems/analysis/simulator.h"
#include "drake/systems/framework/diagram.h"
#include "drake/systems/framework/diagram_builder.h"
#include "drake/systems/lcm/lcm_publisher_system.h"
#include "drake/systems/lcm/lcm_subscriber_system.h"
#include "drake/systems/lcm/serializer.h"
#include "drake/systems/rendering/drake_visualizer_client.h"
#include "drake/systems/rendering/pose_aggregator.h"
#include "drake/systems/rendering/pose_bundle_to_draw_message.h"
Include dependency graph for rod2d_sim.cc:

Typedefs

using Rod2D = drake::examples::rod2d::Rod2D< double >
 

Functions

 DEFINE_string (simulation_type,"timestepping","Type of simulation, valid values are ""'timestepping','compliant'")
 
 DEFINE_double (dt, 1e-2,"Integration step size")
 
 DEFINE_double (rod_radius, 5e-2,"Radius of the rod (for visualization only)")
 
 DEFINE_double (sim_duration, 10,"Simulation duration in virtual seconds")
 
 DEFINE_double (accuracy, 1e-5,"Requested simulation accuracy (ignored for time stepping)")
 
int main (int argc, char *argv[])
 

Typedef Documentation

Function Documentation

DEFINE_double ( dt  ,
1e-  2,
"Integration step size"   
)
DEFINE_double ( rod_radius  ,
5e-  2,
"Radius of the rod (for visualization only)"   
)
DEFINE_double ( sim_duration  ,
10  ,
"Simulation duration in virtual seconds"   
)
DEFINE_double ( accuracy  ,
1e-  5,
"Requested simulation accuracy (ignored for time stepping)"   
)
DEFINE_string ( simulation_type  ,
"timestepping"  ,
"Type of  simulation,
valid values are""'timestepping'  ,
'compliant'"   
)
int main ( int  argc,
char *  argv[] 
)

Here is the call graph for this function: