32 namespace primary_interface
47 ss <<
"timestamp: " <<
timestamp_ << std::endl;
48 ss <<
"source: " <<
static_cast<int>(
source_) << std::endl;
49 ss <<
"message_type: " <<
static_cast<int>(
message_type_) << std::endl;
Base consumer for primary packages.
virtual std::string toString() const
Produces a human readable representation of the package object.
The BinParser class handles a byte buffer and functionality to iteratively parse the content...
RobotMessagePackageType message_type_
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 consumeWith(AbstractPrimaryConsumer &consumer)
Consume this package with a specific consumer.
virtual bool parseWith(comm::BinParser &bp)
Sets the attributes of the package by parsing a serialized representation of the package.