|
yarp-devices
|
#include <CanBusPeak_ParamsParser.h>
Classes | |
| struct | parser_version_type |
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 = {} |
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):