yarp-devices
Loading...
Searching...
No Matches
Classes | Public Member Functions | Public Attributes | List of all members
CanBusPeak_ParamsParser Class Reference

#include <CanBusPeak_ParamsParser.h>

Inheritance diagram for CanBusPeak_ParamsParser:
CanBusPeak

Classes

struct  parser_version_type
 

Public Member Functions

bool parseParams (const yarp::os::Searchable &config) override
 
std::string getDeviceClassName () const override
 
std::string getDeviceName () const override
 
std::string getDocumentationOfDeviceParams () const override
 
std::vector< std::string > getListOfParams () const override
 

Public Attributes

const std::string m_device_classname = {"CanBusPeak"}
 
const std::string m_device_name = {"CanBusPeak"}
 
bool m_parser_is_strict = false
 
const parser_version_type m_parser_version = {}
 
const std::string m_port_defaultValue = {"/dev/pcan0"}
 
const std::string m_bitrate_defaultValue = {"1000000"}
 
const std::string m_blockingMode_defaultValue = {"true"}
 
const std::string m_allowPermissive_defaultValue = {"false"}
 
const std::string m_rxTimeoutMs_defaultValue = {"1"}
 
const std::string m_txTimeoutMs_defaultValue = {"0"}
 
const std::string m_preserveFilters_defaultValue = {"true"}
 
const std::string m_filteredIds_defaultValue = {""}
 
std::string m_port = {"/dev/pcan0"}
 
int m_bitrate = {1000000}
 
bool m_blockingMode = {true}
 
bool m_allowPermissive = {false}
 
int m_rxTimeoutMs = {1}
 
int m_txTimeoutMs = {0}
 
bool m_preserveFilters = {true}
 
std::vector< int > m_filteredIds = {}
 

Detailed Description

This class is the parameters parser for class CanBusPeak.

These are the used parameters:

Group name Parameter name Type Units Default Value Required Description Notes
- port string - /dev/pcan0 0 CAN device path -
- bitrate int bps 1000000 0 CAN bitrate -
- blockingMode bool - true 0 blocking mode enabled -
- allowPermissive bool - false 0 read/write permissive mode -
- rxTimeoutMs int ms 1 0 RX timeout -
- txTimeoutMs int ms 0 0 TX timeout -
- preserveFilters bool - true 0 don't clear acceptance filters on init -
- filteredIds vector<int> - - 0 filtered node IDs -

The device can be launched by yarpdev using one of the following examples (with and without all optional parameters):

yarpdev --device CanBusPeak --port /dev/pcan0 --bitrate 1000000 --blockingMode true --allowPermissive false --rxTimeoutMs 1 --txTimeoutMs 0 --preserveFilters true --filteredIds <optional_value>
yarpdev --device CanBusPeak

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