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 97 of file PdsNode.h.

Member Typedef Documentation

◆ SyncMsg

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

Definition at line 140 of file PdsNode.h.

◆ SyncPolicy1

Definition at line 142 of file PdsNode.h.

◆ SyncPolicy2

Definition at line 143 of file PdsNode.h.

◆ SyncPolicy3

Definition at line 144 of file PdsNode.h.

◆ SyncPtr

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

Definition at line 141 of file PdsNode.h.

Constructor & Destructor Documentation

◆ PdsNode()

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

Definition at line 73 of file PdsNode.cpp.

◆ ~PdsNode()

dataspeed_pds_can::PdsNode::~PdsNode ( )

Definition at line 107 of file PdsNode.cpp.

Member Function Documentation

◆ bytesToAmperes()

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

Definition at line 115 of file PdsNode.h.

◆ bytesToCelsius()

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

Definition at line 116 of file PdsNode.h.

◆ bytesToVoltage()

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

Definition at line 114 of file PdsNode.h.

◆ recvCAN()

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

Definition at line 123 of file PdsNode.cpp.

◆ recvMode()

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

Definition at line 184 of file PdsNode.cpp.

◆ recvRelay()

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

Definition at line 173 of file PdsNode.cpp.

◆ recvScript()

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

Definition at line 194 of file PdsNode.cpp.

◆ recvSync()

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

Definition at line 205 of file PdsNode.cpp.

◆ recvSyncSlave1()

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

Definition at line 305 of file PdsNode.cpp.

◆ recvSyncSlave2()

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

Definition at line 314 of file PdsNode.cpp.

◆ recvSyncSlave3()

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

Definition at line 325 of file PdsNode.cpp.

Member Data Documentation

◆ pub_can_

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

Definition at line 126 of file PdsNode.h.

◆ pub_status_

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

Definition at line 125 of file PdsNode.h.

◆ stamp_slave1_

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

Definition at line 129 of file PdsNode.h.

◆ stamp_slave2_

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

Definition at line 130 of file PdsNode.h.

◆ stamp_slave3_

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

Definition at line 131 of file PdsNode.h.

◆ sub_can_

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

Definition at line 122 of file PdsNode.h.

◆ sub_mode_

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

Definition at line 120 of file PdsNode.h.

◆ sub_relay_

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

Definition at line 119 of file PdsNode.h.

◆ sub_script_

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

Definition at line 121 of file PdsNode.h.

◆ sync_can_master_

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

Definition at line 134 of file PdsNode.h.

◆ sync_can_slave1_

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

Definition at line 135 of file PdsNode.h.

◆ sync_can_slave2_

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

Definition at line 136 of file PdsNode.h.

◆ sync_can_slave3_

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

Definition at line 137 of file PdsNode.h.

◆ sync_msg_master_

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

Definition at line 148 of file PdsNode.h.

◆ sync_msg_slave1_

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

Definition at line 149 of file PdsNode.h.

◆ sync_msg_slave2_

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

Definition at line 150 of file PdsNode.h.

◆ sync_msg_slave3_

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

Definition at line 151 of file PdsNode.h.

◆ sync_ros_slave1_

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

Definition at line 145 of file PdsNode.h.

◆ sync_ros_slave2_

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

Definition at line 146 of file PdsNode.h.

◆ sync_ros_slave3_

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

Definition at line 147 of file PdsNode.h.


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


dataspeed_pds_can
Author(s): Kevin Hallenbeck , Eric Myllyoja , Michael Lohrer
autogenerated on Wed Mar 2 2022 00:11:44