36 namespace primary_interface
59 for (
size_t i = 0; i <
checksum_.size(); ++i)
63 os <<
"]" << std::endl;
65 for (
size_t i = 0; i <
dh_theta_.size(); ++i)
67 os << std::setprecision(15) <<
dh_theta_[i] <<
" ";
69 os <<
"]" << std::endl;
72 for (
size_t i = 0; i <
dh_a_.size(); ++i)
74 os << std::setprecision(15) <<
dh_a_[i] <<
" ";
76 os <<
"]" << std::endl;
79 for (
size_t i = 0; i <
dh_d_.size(); ++i)
81 os << std::setprecision(15) <<
dh_d_[i] <<
" ";
83 os <<
"]" << std::endl;
86 for (
size_t i = 0; i <
dh_alpha_.size(); ++i)
88 os << std::setprecision(15) <<
dh_alpha_[i] <<
" ";
90 os <<
"]" << std::endl;
100 for (
size_t i = 0; i < 6; ++i)
107 std::hash<std::string> hash_fn;
108 return "calib_" + std::to_string(hash_fn(ss.str()));
void parse(T &val)
Parses the next bytes as given type.
Base consumer for primary packages.
The BinParser class handles a byte buffer and functionality to iteratively parse the content...
virtual bool consume(std::shared_ptr< PrimaryPackage > product) final
This consume method is usally being called by the Pipeline structure. We don't necessarily need to kn...
virtual bool parseWith(comm::BinParser &bp)
Sets the attributes of the package by parsing a serialized representation of the package.
std::string toHash() const
Calculates a hash value of the parameters to allow for identification of a calibration.
vector6uint32_t checksum_
virtual std::string toString() const
Produces a human readable representation of the package object.
uint32_t calibration_status_
virtual bool consumeWith(AbstractPrimaryConsumer &consumer)
Consume this specific package with a specific consumer.