Public Member Functions | Public Attributes | List of all members
kobuki::Parameters Class Reference

Parameter list and validator for the kobuki. More...

#include <parameters.hpp>

Public Member Functions

bool validate ()
 A validator to ensure the user has supplied correct/sensible parameter values. More...
 

Public Attributes

double angular_acceleration_limit
 
double angular_deceleration_limit
 
double battery_capacity
 Capacity voltage of the battery [16.5V]. More...
 
double battery_dangerous
 Threshold for battery level in danger of depletion [13.2V]. More...
 
double battery_low
 Threshold for battery level warnings [14.0V]. More...
 
std::string device_port
 The serial device port name [/dev/kobuki]. More...
 
bool enable_acceleration_limiter
 Enable or disable the acceleration limiter [true]. More...
 
std::string error_msg
 Provides error messages when parameter validation fails (internal purposes only) More...
 
double linear_acceleration_limit
 
double linear_deceleration_limit
 
std::string sigslots_namespace
 The first part of a sigslot connection namespace ["/kobuki"]. More...
 
bool simulation
 Whether to put the motors in loopback mode or not [false]. More...
 

Detailed Description

Parameter list and validator for the kobuki.

Definition at line 42 of file parameters.hpp.

Member Function Documentation

◆ validate()

bool kobuki::Parameters::validate ( )
inline

A validator to ensure the user has supplied correct/sensible parameter values.

This validates the current parameters and if invalid, puts an error string in error_msg.

Returns
bool : true if valid, false otherwise.

Definition at line 88 of file parameters.hpp.

Member Data Documentation

◆ angular_acceleration_limit

double kobuki::Parameters::angular_acceleration_limit

Definition at line 78 of file parameters.hpp.

◆ angular_deceleration_limit

double kobuki::Parameters::angular_deceleration_limit

Definition at line 79 of file parameters.hpp.

◆ battery_capacity

double kobuki::Parameters::battery_capacity

Capacity voltage of the battery [16.5V].

Definition at line 72 of file parameters.hpp.

◆ battery_dangerous

double kobuki::Parameters::battery_dangerous

Threshold for battery level in danger of depletion [13.2V].

Definition at line 74 of file parameters.hpp.

◆ battery_low

double kobuki::Parameters::battery_low

Threshold for battery level warnings [14.0V].

Definition at line 73 of file parameters.hpp.

◆ device_port

std::string kobuki::Parameters::device_port

The serial device port name [/dev/kobuki].

Definition at line 68 of file parameters.hpp.

◆ enable_acceleration_limiter

bool kobuki::Parameters::enable_acceleration_limiter

Enable or disable the acceleration limiter [true].

Definition at line 71 of file parameters.hpp.

◆ error_msg

std::string kobuki::Parameters::error_msg

Provides error messages when parameter validation fails (internal purposes only)

Definition at line 94 of file parameters.hpp.

◆ linear_acceleration_limit

double kobuki::Parameters::linear_acceleration_limit

Definition at line 76 of file parameters.hpp.

◆ linear_deceleration_limit

double kobuki::Parameters::linear_deceleration_limit

Definition at line 77 of file parameters.hpp.

◆ sigslots_namespace

std::string kobuki::Parameters::sigslots_namespace

The first part of a sigslot connection namespace ["/kobuki"].

Definition at line 69 of file parameters.hpp.

◆ simulation

bool kobuki::Parameters::simulation

Whether to put the motors in loopback mode or not [false].

Definition at line 70 of file parameters.hpp.


The documentation for this class was generated from the following file:


kobuki_driver
Author(s): Daniel Stonier , Younghun Ju , Jorge Santos Simon
autogenerated on Wed Mar 2 2022 00:26:14