#include <gpio_encoder.h>
Public Member Functions | |
double | getConversion (double reduction) |
getConversion Get conversion from pulse value to real value More... | |
GPIOEncoderConfigurator (const ros::NodeHandle &nh, roboteq::serial_controller *serial, std::vector< roboteq::Motor * > motor, string name, unsigned int number) | |
GPIOEncoderConfigurator. More... | |
void | initConfigurator (bool load_from_board) |
initConfigurator Initialize all parameter and syncronize parameters between ros and roboteq board More... | |
Private Member Functions | |
void | getEncoderFromRoboteq () |
getEncoderFromRoboteq Load Encoder parameters from Roboteq board More... | |
void | reconfigureCBEncoder (roboteq_control::RoboteqEncoderConfig &config, uint32_t level) |
reconfigureCBEncoder when the dynamic reconfigurator change some values start this method More... | |
Private Attributes | |
roboteq_control::RoboteqEncoderConfig | _last_encoder_config |
std::vector< roboteq::Motor * > | _motor |
double | _reduction |
roboteq_control::RoboteqEncoderConfig | default_encoder_config |
dynamic_reconfigure::Server< roboteq_control::RoboteqEncoderConfig > * | ds_encoder |
Dynamic reconfigure encoder. More... | |
string | mName |
Associate name space. More... | |
unsigned int | mNumber |
Number motor. More... | |
roboteq::serial_controller * | mSerial |
Serial port. More... | |
ros::NodeHandle | nh_ |
Private namespace. More... | |
bool | setup_encoder |
Setup variable. More... | |
Copyright (C) 2017, Raffaello Bonghi raffa All rights reserved ello @rnex t.it
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition at line 44 of file gpio_encoder.h.
GPIOEncoderConfigurator::GPIOEncoderConfigurator | ( | const ros::NodeHandle & | nh, |
roboteq::serial_controller * | serial, | ||
std::vector< roboteq::Motor * > | motor, | ||
string | name, | ||
unsigned int | number | ||
) |
nh | |
serial | |
number |
Definition at line 35 of file gpio_encoder.cpp.
|
virtual |
getConversion Get conversion from pulse value to real value
Implements GPIOSensor.
Definition at line 70 of file gpio_encoder.cpp.
|
private |
getEncoderFromRoboteq Load Encoder parameters from Roboteq board
Definition at line 84 of file gpio_encoder.cpp.
void GPIOEncoderConfigurator::initConfigurator | ( | bool | load_from_board | ) |
initConfigurator Initialize all parameter and syncronize parameters between ros and roboteq board
load_from_board | If true load all paramter from roboteq board |
Definition at line 48 of file gpio_encoder.cpp.
|
private |
reconfigureCBEncoder when the dynamic reconfigurator change some values start this method
config | variable with all configuration from dynamic reconfigurator |
level |
Definition at line 166 of file gpio_encoder.cpp.
|
private |
Definition at line 92 of file gpio_encoder.h.
|
private |
Definition at line 78 of file gpio_encoder.h.
|
private |
Definition at line 81 of file gpio_encoder.h.
|
private |
Definition at line 92 of file gpio_encoder.h.
|
private |
Dynamic reconfigure encoder.
Definition at line 84 of file gpio_encoder.h.
|
private |
Associate name space.
Definition at line 70 of file gpio_encoder.h.
|
private |
Number motor.
Definition at line 72 of file gpio_encoder.h.
|
private |
Serial port.
Definition at line 76 of file gpio_encoder.h.
|
private |
Private namespace.
Definition at line 74 of file gpio_encoder.h.
|
private |
Setup variable.
Definition at line 67 of file gpio_encoder.h.