bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
distributed_chrono_robots.cpp File Reference
#include "bitsim/bitsim_config.h"
#include "bitsim/bitsim_consts.h"
#include "bitsim/bitsim_types.h"
#include "bitsim/distributed/chrono_ghosts.h"
#include "bitsim/distributed/synchroniser.h"
#include "bitsim/distributed/transport.h"
#include "bitsim/rigid_bodies/chrono_robots/diff_drive_robot.h"
#include "bitsim/utils/io/print_utils.h"
#include "bitsim/distributed/mqtt_transport.h"
#include <chrono/physics/ChBodyEasy.h>
#include <chrono/physics/ChContactMaterialNSC.h>
#include <chrono/physics/ChSystemNSC.h>
#include <algorithm>
#include <cstdlib>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <memory>
#include <string>
#include <thread>
#include <vector>
Include dependency graph for distributed_chrono_robots.cpp:

Classes

struct  distributed_chrono_robots::Options
struct  distributed_chrono_robots::Result
class  distributed_chrono_robots::World
class  distributed_chrono_robots::CHRONO_DiffDriveRobot
 A differential-drive robot in Chrono: a chassis, two driven wheels and a ball caster. Each driven wheel has an actuators::DCMotor. More...

Namespaces

namespace  distributed_chrono_robots

Typedefs

using distributed_chrono_robots::real_t
 real_t
using distributed_chrono_robots::uint_t
 uint_t

Functions

std::string distributed_chrono_robots::name_of (uint_t k)
Result distributed_chrono_robots::simulate (uint_t k, const Options &options, Transport &transport)
void distributed_chrono_robots::report (const std::vector< Result > &results, uint_t first=0)
std::vector< Result > distributed_chrono_robots::run_in_process (const Options &options)
int distributed_chrono_robots::run (const Options &options)
int main (int argc, char **argv)

Variables

const std::string distributed_chrono_robots::ROBOT_FILE = bitsim::consts::ROBOTS_DIR + "/bitsim_diff_drive_robot.json"
const std::array< real_t, 3 > distributed_chrono_robots::CHASSIS {0.5, 0.3, 0.1}
const real_t distributed_chrono_robots::START = 2.0
const real_t distributed_chrono_robots::SPEED = 0.3
const real_t distributed_chrono_robots::STOP_AT = 0.4
const real_t distributed_chrono_robots::STEP = 0.01
const uint_t distributed_chrono_robots::STEPS_PER_SYNC = 2
const real_t distributed_chrono_robots::DURATION = 12.0

Function Documentation

◆ main()

int main ( int argc,
char ** argv )