Skip to content
New issue

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

Add parsing support for tsl messages #1043

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

simonsag96
Copy link
Contributor

We at TUM Autonomous Motorsport developed our own time series logging library - comparable to Data Tamer and pal_statistics. By the way, Kudos to DataTamer, it's an awesome library.
However, we already started developing our library before DataTamer was around.
And even then, it did unfortunately not fit all the requirements we had (e.g. access from python....).

Our library called TSL is now also OpenSource.
Therefore, I would really like it if the message definitions were supported officially by PlotJuggler and not just by our fork.

Let me know what you think of the PR. For the implementation of the message parsing, I have oriented myself on your implementation of the pal_statistics and data tamer parser. The implementation has been tested for months internally without any problems.

// is not relevant inside plotjuggler any more
std::uint32_t sec = _deserializer->deserializeUInt32(); // stamp
std::uint32_t nsec = _deserializer->deserializeUInt32(); // stamp
std::size_t definition_hash =

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable sec is not used.
std::uint32_t sec = _deserializer->deserializeUInt32(); // stamp
std::uint32_t nsec = _deserializer->deserializeUInt32(); // stamp
std::size_t definition_hash =
_deserializer->deserialize(BuiltinType::UINT64).extract<std::size_t>();

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable nsec is not used.

std::size_t num_signals = 0;
std::size_t index = 0;
for (auto const& _ : _tsl_type_order)

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable _ is not used.
}
void ParserROS::parseTSLValues(const std::string& prefix, double& timestamp)
{
// region Deserialize into a flattened array of double values since the type

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable sec is not used.
void ParserROS::parseTSLValues(const std::string& prefix, double& timestamp)
{
// region Deserialize into a flattened array of double values since the type
// is not relevant inside plotjuggler any more

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable nsec is not used.
@simonsag96
Copy link
Contributor Author

Regarding the comments:
I intentionally did not parse the timestamp, but I could add an extra timeseries if you prefer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant