Classes | Macros | Functions
motor_parameters.h File Reference
#include <ros/ros.h>
Include dependency graph for motor_parameters.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CommsParams
 
struct  FirmwareParams
 
struct  NodeParams
 

Macros

#define MOTOR_CONTROL_CMD   "motor_control"
 
#define MOTOR_CONTROL_DISABLE   "disable"
 
#define MOTOR_CONTROL_ENABLE   "enable"
 
#define MOTOR_SPEED_CONTROL_CMD   "speed_control"
 
#define ROS_TOPIC_SYSTEM_CONTROL   "system_control"
 
#define WHEEL_GEAR_RATIO_1   ((double)(4.294))
 
#define WHEEL_GEAR_RATIO_2   ((double)(5.170))
 

Functions

template<typename T >
getParamOrDefault (ros::NodeHandle nh, std::string parameter_name, T default_val)
 

Macro Definition Documentation

◆ MOTOR_CONTROL_CMD

#define MOTOR_CONTROL_CMD   "motor_control"

Definition at line 38 of file motor_parameters.h.

◆ MOTOR_CONTROL_DISABLE

#define MOTOR_CONTROL_DISABLE   "disable"

Definition at line 40 of file motor_parameters.h.

◆ MOTOR_CONTROL_ENABLE

#define MOTOR_CONTROL_ENABLE   "enable"

Definition at line 39 of file motor_parameters.h.

◆ MOTOR_SPEED_CONTROL_CMD

#define MOTOR_SPEED_CONTROL_CMD   "speed_control"

Definition at line 41 of file motor_parameters.h.

◆ ROS_TOPIC_SYSTEM_CONTROL

#define ROS_TOPIC_SYSTEM_CONTROL   "system_control"

Copyright (c) 2016, Ubiquity Robotics All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

Neither the name of ubiquity_motor nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

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 37 of file motor_parameters.h.

◆ WHEEL_GEAR_RATIO_1

#define WHEEL_GEAR_RATIO_1   ((double)(4.294))

Definition at line 44 of file motor_parameters.h.

◆ WHEEL_GEAR_RATIO_2

#define WHEEL_GEAR_RATIO_2   ((double)(5.170))

Definition at line 45 of file motor_parameters.h.

Function Documentation

◆ getParamOrDefault()

template<typename T >
T getParamOrDefault ( ros::NodeHandle  nh,
std::string  parameter_name,
default_val 
)

Definition at line 48 of file motor_parameters.h.



ubiquity_motor
Author(s):
autogenerated on Thu Nov 16 2023 03:30:56