Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
dataspeed_pds_can::PdsNode Class Reference

#include <PdsNode.h>

Public Member Functions

 PdsNode (ros::NodeHandle &node, ros::NodeHandle &priv_nh)
 
 ~PdsNode ()
 

Private Types

typedef dataspeed_pds_msgs::Status SyncMsg
 
typedef message_filters::sync_policies::ApproximateTime< SyncMsg, SyncMsgSyncPolicy1
 
typedef message_filters::sync_policies::ApproximateTime< SyncMsg, SyncMsg, SyncMsgSyncPolicy2
 
typedef message_filters::sync_policies::ApproximateTime< SyncMsg, SyncMsg, SyncMsg, SyncMsgSyncPolicy3
 
typedef dataspeed_pds_msgs::Status::ConstPtr SyncPtr
 

Private Member Functions

float bytesToAmperes (int16_t input)
 
float bytesToCelsius (int8_t input)
 
float bytesToVoltage (uint16_t input)
 
void recvCAN (const can_msgs::Frame::ConstPtr &msg)
 
void recvMode (const dataspeed_pds_msgs::Mode::ConstPtr &msg)
 
void recvRelay (const dataspeed_pds_msgs::Relay::ConstPtr &msg)
 
void recvScript (const dataspeed_pds_msgs::Script::ConstPtr &msg)
 
void recvSync (const std::vector< can_msgs::Frame::ConstPtr > &msgs, UnitId id)
 
void recvSyncSlave1 (const SyncPtr &master, const SyncPtr &slave1)
 
void recvSyncSlave2 (const SyncPtr &master, const SyncPtr &slave1, const SyncPtr &slave2)
 
void recvSyncSlave3 (const SyncPtr &master, const SyncPtr &slave1, const SyncPtr &slave2, const SyncPtr &slave3)
 

Private Attributes

ros::Publisher pub_can_
 
ros::Publisher pub_status_
 
ros::Time stamp_slave1_
 
ros::Time stamp_slave2_
 
ros::Time stamp_slave3_
 
ros::Subscriber sub_can_
 
ros::Subscriber sub_mode_
 
ros::Subscriber sub_relay_
 
ros::Subscriber sub_script_
 
dataspeed_can_msg_filters::ApproximateTime sync_can_master_
 
dataspeed_can_msg_filters::ApproximateTime sync_can_slave1_
 
dataspeed_can_msg_filters::ApproximateTime sync_can_slave2_
 
dataspeed_can_msg_filters::ApproximateTime sync_can_slave3_
 
message_filters::PassThrough< SyncMsgsync_msg_master_
 
message_filters::PassThrough< SyncMsgsync_msg_slave1_
 
message_filters::PassThrough< SyncMsgsync_msg_slave2_
 
message_filters::PassThrough< SyncMsgsync_msg_slave3_
 
message_filters::Synchronizer< SyncPolicy1 > * sync_ros_slave1_
 
message_filters::Synchronizer< SyncPolicy2 > * sync_ros_slave2_
 
message_filters::Synchronizer< SyncPolicy3 > * sync_ros_slave3_
 

Detailed Description

Definition at line 65 of file PdsNode.h.

Member Typedef Documentation

typedef dataspeed_pds_msgs::Status dataspeed_pds_can::PdsNode::SyncMsg
private

Definition at line 108 of file PdsNode.h.

Definition at line 110 of file PdsNode.h.

Definition at line 111 of file PdsNode.h.

Definition at line 112 of file PdsNode.h.

typedef dataspeed_pds_msgs::Status::ConstPtr dataspeed_pds_can::PdsNode::SyncPtr
private

Definition at line 109 of file PdsNode.h.

Constructor & Destructor Documentation

dataspeed_pds_can::PdsNode::PdsNode ( ros::NodeHandle node,
ros::NodeHandle priv_nh 
)

Definition at line 41 of file PdsNode.cpp.

dataspeed_pds_can::PdsNode::~PdsNode ( )

Definition at line 75 of file PdsNode.cpp.

Member Function Documentation

float dataspeed_pds_can::PdsNode::bytesToAmperes ( int16_t  input)
inlineprivate

Definition at line 83 of file PdsNode.h.

float dataspeed_pds_can::PdsNode::bytesToCelsius ( int8_t  input)
inlineprivate

Definition at line 84 of file PdsNode.h.

float dataspeed_pds_can::PdsNode::bytesToVoltage ( uint16_t  input)
inlineprivate

Definition at line 82 of file PdsNode.h.

void dataspeed_pds_can::PdsNode::recvCAN ( const can_msgs::Frame::ConstPtr &  msg)
private

Definition at line 91 of file PdsNode.cpp.

void dataspeed_pds_can::PdsNode::recvMode ( const dataspeed_pds_msgs::Mode::ConstPtr &  msg)
private

Definition at line 152 of file PdsNode.cpp.

void dataspeed_pds_can::PdsNode::recvRelay ( const dataspeed_pds_msgs::Relay::ConstPtr &  msg)
private

Definition at line 141 of file PdsNode.cpp.

void dataspeed_pds_can::PdsNode::recvScript ( const dataspeed_pds_msgs::Script::ConstPtr &  msg)
private

Definition at line 162 of file PdsNode.cpp.

void dataspeed_pds_can::PdsNode::recvSync ( const std::vector< can_msgs::Frame::ConstPtr > &  msgs,
UnitId  id 
)
private

Definition at line 173 of file PdsNode.cpp.

void dataspeed_pds_can::PdsNode::recvSyncSlave1 ( const SyncPtr master,
const SyncPtr slave1 
)
private

Definition at line 257 of file PdsNode.cpp.

void dataspeed_pds_can::PdsNode::recvSyncSlave2 ( const SyncPtr master,
const SyncPtr slave1,
const SyncPtr slave2 
)
private

Definition at line 266 of file PdsNode.cpp.

void dataspeed_pds_can::PdsNode::recvSyncSlave3 ( const SyncPtr master,
const SyncPtr slave1,
const SyncPtr slave2,
const SyncPtr slave3 
)
private

Definition at line 277 of file PdsNode.cpp.

Member Data Documentation

ros::Publisher dataspeed_pds_can::PdsNode::pub_can_
private

Definition at line 94 of file PdsNode.h.

ros::Publisher dataspeed_pds_can::PdsNode::pub_status_
private

Definition at line 93 of file PdsNode.h.

ros::Time dataspeed_pds_can::PdsNode::stamp_slave1_
private

Definition at line 97 of file PdsNode.h.

ros::Time dataspeed_pds_can::PdsNode::stamp_slave2_
private

Definition at line 98 of file PdsNode.h.

ros::Time dataspeed_pds_can::PdsNode::stamp_slave3_
private

Definition at line 99 of file PdsNode.h.

ros::Subscriber dataspeed_pds_can::PdsNode::sub_can_
private

Definition at line 90 of file PdsNode.h.

ros::Subscriber dataspeed_pds_can::PdsNode::sub_mode_
private

Definition at line 88 of file PdsNode.h.

ros::Subscriber dataspeed_pds_can::PdsNode::sub_relay_
private

Definition at line 87 of file PdsNode.h.

ros::Subscriber dataspeed_pds_can::PdsNode::sub_script_
private

Definition at line 89 of file PdsNode.h.

dataspeed_can_msg_filters::ApproximateTime dataspeed_pds_can::PdsNode::sync_can_master_
private

Definition at line 102 of file PdsNode.h.

dataspeed_can_msg_filters::ApproximateTime dataspeed_pds_can::PdsNode::sync_can_slave1_
private

Definition at line 103 of file PdsNode.h.

dataspeed_can_msg_filters::ApproximateTime dataspeed_pds_can::PdsNode::sync_can_slave2_
private

Definition at line 104 of file PdsNode.h.

dataspeed_can_msg_filters::ApproximateTime dataspeed_pds_can::PdsNode::sync_can_slave3_
private

Definition at line 105 of file PdsNode.h.

message_filters::PassThrough<SyncMsg> dataspeed_pds_can::PdsNode::sync_msg_master_
private

Definition at line 116 of file PdsNode.h.

message_filters::PassThrough<SyncMsg> dataspeed_pds_can::PdsNode::sync_msg_slave1_
private

Definition at line 117 of file PdsNode.h.

message_filters::PassThrough<SyncMsg> dataspeed_pds_can::PdsNode::sync_msg_slave2_
private

Definition at line 118 of file PdsNode.h.

message_filters::PassThrough<SyncMsg> dataspeed_pds_can::PdsNode::sync_msg_slave3_
private

Definition at line 119 of file PdsNode.h.

message_filters::Synchronizer<SyncPolicy1>* dataspeed_pds_can::PdsNode::sync_ros_slave1_
private

Definition at line 113 of file PdsNode.h.

message_filters::Synchronizer<SyncPolicy2>* dataspeed_pds_can::PdsNode::sync_ros_slave2_
private

Definition at line 114 of file PdsNode.h.

message_filters::Synchronizer<SyncPolicy3>* dataspeed_pds_can::PdsNode::sync_ros_slave3_
private

Definition at line 115 of file PdsNode.h.


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


dataspeed_pds_can
Author(s): Kevin Hallenbeck , Eric Myllyoja
autogenerated on Sat Jul 11 2020 03:09:52