We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
I am trying to implement the basic example using structures and not the custom data type one. My code has the following structure:
struct Robot { std::shared_ptr<DataTamer::MCAPSink> mcap_sink; std::shared_ptr<DataTamer::LogChannel> channel; DataTamer::RegistrationID id1; int count{0}; }
The above code is in a Robot.h file. The implementation file looks like this
Robot::Robot() { mcap_sink = std::make_shared<DataTamer::MCAPSink>(robotId + "_diagnostics_log.mcap"); channel = DataTamer::LogChannel::create("diagnostics_channel"); channel->addDataSink(mcap_sink); id1 = channel->registerValue("count", &this->count); }
I have a mqtt callback function where I have added the takeSnapShot() function
void Robot::updateData(nlohmann::json data) { channel->takeSnapshot(); count++; }
Please let me know what I am doing wrong because when I copy the example code in my constructor it works but doesn't work like this
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
I am trying to implement the basic example using structures and not the custom data type one. My code has the following structure:
The above code is in a Robot.h file. The implementation file looks like this
I have a mqtt callback function where I have added the takeSnapShot() function
Please let me know what I am doing wrong because when I copy the example code in my constructor it works but doesn't work like this
The text was updated successfully, but these errors were encountered: