Hey so my problem is that I need a custom format for msgs which I have no idea how to do with ROS. The problem is that I have a really complex dynamic format and I would basically need a serialize() and deserialize() or something along those lines where I can define how to serialize and deserialize the msg. The main problem is that its changing during runtime and I found no way to do that with ros yet. I have values similar to this I need to send in the message:
message Variant {
oneof value {
int64 int_value = 3;
double double_value = 4;
bool bool_value = 5;
string string_value = 6;
}
}
↧