Go to the documentation of this file.
41 #include <can_msgs/Frame.h>
43 #include <dataspeed_pds_msgs/Mode.h>
44 #include <dataspeed_pds_msgs/Relay.h>
45 #include <dataspeed_pds_msgs/Script.h>
46 #include <dataspeed_pds_msgs/Status.h>
73 void recvCAN(
const can_msgs::Frame::ConstPtr& msg);
74 void recvRelay(
const dataspeed_pds_msgs::Relay::ConstPtr &msg);
75 void recvMode(
const dataspeed_pds_msgs::Mode::ConstPtr &msg);
76 void recvScript(
const dataspeed_pds_msgs::Script::ConstPtr &msg);
79 void recvSync(
const std::vector<can_msgs::Frame::ConstPtr> &msgs,
UnitId id);
82 float bytesToVoltage(uint16_t input) {
return input * (float)0.01; }
83 float bytesToAmperes(int16_t input) {
return input * (float)0.001; }
84 float bytesToCelsius(int8_t input) {
return input * (float)0.5 + (
float)44.0; }
108 typedef dataspeed_pds_msgs::Status
SyncMsg;
109 typedef dataspeed_pds_msgs::Status::ConstPtr
SyncPtr;
127 #endif // _PDS_NODE_H_
message_filters::Synchronizer< SyncPolicy2 > * sync_ros_slave2_
void recvCAN(const can_msgs::Frame::ConstPtr &msg)
void recvMode(const dataspeed_pds_msgs::Mode::ConstPtr &msg)
ros::Subscriber sub_script_
dataspeed_pds_msgs::Status::ConstPtr SyncPtr
message_filters::Synchronizer< SyncPolicy1 > * sync_ros_slave1_
void recvScript(const dataspeed_pds_msgs::Script::ConstPtr &msg)
dataspeed_can_msg_filters::ApproximateTime sync_can_slave3_
const ros::Duration TIMEOUT(0.5)
void recvSyncSlave1(const SyncPtr &master, const SyncPtr &slave1)
message_filters::PassThrough< SyncMsg > sync_msg_slave2_
void recvSync(const std::vector< can_msgs::Frame::ConstPtr > &msgs, UnitId id)
message_filters::PassThrough< SyncMsg > sync_msg_slave1_
message_filters::PassThrough< SyncMsg > sync_msg_master_
message_filters::sync_policies::ApproximateTime< SyncMsg, SyncMsg > SyncPolicy1
ros::Subscriber sub_mode_
void recvRelay(const dataspeed_pds_msgs::Relay::ConstPtr &msg)
dataspeed_can_msg_filters::ApproximateTime sync_can_slave2_
dataspeed_can_msg_filters::ApproximateTime sync_can_slave1_
ros::Publisher pub_status_
message_filters::Synchronizer< SyncPolicy3 > * sync_ros_slave3_
float bytesToVoltage(uint16_t input)
message_filters::PassThrough< SyncMsg > sync_msg_slave3_
message_filters::sync_policies::ApproximateTime< SyncMsg, SyncMsg, SyncMsg, SyncMsg > SyncPolicy3
void recvSyncSlave2(const SyncPtr &master, const SyncPtr &slave1, const SyncPtr &slave2)
float bytesToAmperes(int16_t input)
void recvSyncSlave3(const SyncPtr &master, const SyncPtr &slave1, const SyncPtr &slave2, const SyncPtr &slave3)
ros::Subscriber sub_relay_
PdsNode(ros::NodeHandle &node, ros::NodeHandle &priv_nh)
float bytesToCelsius(int8_t input)
dataspeed_can_msg_filters::ApproximateTime sync_can_master_
message_filters::sync_policies::ApproximateTime< SyncMsg, SyncMsg, SyncMsg > SyncPolicy2
dataspeed_pds_msgs::Status SyncMsg
dataspeed_pds_can
Author(s): Kevin Hallenbeck
, Eric Myllyoja , Michael Lohrer
autogenerated on Wed Mar 2 2022 00:11:44