21 #ifndef PACMOD_PACMOD_ROS_MSG_HANDLER_H 22 #define PACMOD_PACMOD_ROS_MSG_HANDLER_H 45 std::vector<unsigned char>
getData()
const;
46 void setData(std::vector<unsigned char> new_data);
49 std::vector<unsigned char>
_data;
58 void fillAndPublish(
const int64_t& can_id,
61 const std::shared_ptr<PacmodTxMsg>& parser_class);
64 void fillSystemRptInt(
const std::shared_ptr<PacmodTxMsg>& parser_class,
65 pacmod_msgs::SystemRptInt* new_msg,
66 std::string frame_id);
67 void fillSystemRptFloat(
const std::shared_ptr<PacmodTxMsg>& parser_class,
68 pacmod_msgs::SystemRptFloat* new_msg,
69 std::string frame_id);
70 void fillGlobalRpt(
const std::shared_ptr<PacmodTxMsg>& parser_class,
71 pacmod_msgs::GlobalRpt* new_msg,
72 std::string frame_id);
73 void fillVehicleSpeedRpt(
const std::shared_ptr<PacmodTxMsg>& parser_class,
74 pacmod_msgs::VehicleSpeedRpt* new_msg,
75 std::string frame_id);
76 void fillMotorRpt1(
const std::shared_ptr<PacmodTxMsg>& parser_class,
77 pacmod_msgs::MotorRpt1* new_msg,
78 std::string frame_id);
79 void fillMotorRpt2(
const std::shared_ptr<PacmodTxMsg>& parser_class,
80 pacmod_msgs::MotorRpt2* new_msg,
81 std::string frame_id);
82 void fillMotorRpt3(
const std::shared_ptr<PacmodTxMsg>& parser_class,
83 pacmod_msgs::MotorRpt3* new_msg,
84 std::string frame_id);
85 void fillWheelSpeedRpt(
const std::shared_ptr<PacmodTxMsg>& parser_class,
86 pacmod_msgs::WheelSpeedRpt* new_msg,
87 std::string frame_id);
88 void fillSteeringPIDRpt1(
const std::shared_ptr<PacmodTxMsg>& parser_class,
89 pacmod_msgs::SteeringPIDRpt1* new_msg,
90 std::string frame_id);
91 void fillSteeringPIDRpt2(
const std::shared_ptr<PacmodTxMsg>& parser_class,
92 pacmod_msgs::SteeringPIDRpt2* new_msg,
93 std::string frame_id);
94 void fillSteeringPIDRpt3(
const std::shared_ptr<PacmodTxMsg>& parser_class,
95 pacmod_msgs::SteeringPIDRpt3* new_msg,
96 std::string frame_id);
97 void fillParkingBrakeStatusRpt(
const std::shared_ptr<PacmodTxMsg>& parser_class,
98 pacmod_msgs::ParkingBrakeStatusRpt* new_msg,
99 std::string frame_id);
100 void fillYawRateRpt(
const std::shared_ptr<PacmodTxMsg>& parser_class,
101 pacmod_msgs::YawRateRpt* new_msg,
102 std::string frame_id);
103 void fillLatLonHeadingRpt(
const std::shared_ptr<PacmodTxMsg>& parser_class,
104 pacmod_msgs::LatLonHeadingRpt* new_msg,
105 std::string frame_id);
106 void fillDateTimeRpt(
const std::shared_ptr<PacmodTxMsg>& parser_class,
107 pacmod_msgs::DateTimeRpt* new_msg,
108 std::string frame_id);
109 void fillSteeringPIDRpt4(
const std::shared_ptr<PacmodTxMsg>& parser_class,
110 pacmod_msgs::SteeringPIDRpt4* new_msg,
111 std::string frame_id);
112 void fillVinRpt(
const std::shared_ptr<PacmodTxMsg>& parser_class,
113 pacmod_msgs::VinRpt* new_msg,
114 std::string frame_id);
120 static std::vector<uint8_t> unpackAndEncode(
const int64_t& can_id,
121 const pacmod_msgs::PacmodCmd::ConstPtr& msg);
122 static std::vector<uint8_t> unpackAndEncode(
const int64_t& can_id,
123 const pacmod_msgs::PositionWithSpeed::ConstPtr& msg);
129 #endif // PACMOD_PACMOD_ROS_MSG_HANDLER_H void setIsValid(bool valid)
std::vector< unsigned char > _data
std::vector< unsigned char > getData() const
void setData(std::vector< unsigned char > new_data)