facontidavide / ros_type_introspection

Deserialize ROS messages that are unknown at compilation time
MIT License
61 stars 30 forks source link

Filter out variables #39

Closed veimox closed 2 years ago

veimox commented 5 years ago

In the same fashion as RosIntrospection::SubstitutionRule it would be nice to have a RosIntrospection::FilterRule to filter out unwanted variables.

Use case 1 I get a Twist Stamped but I am only interested on the twist, then I apply a filter to remove the header part. Once filtered, I can apply Substitution Rules to rename the vars if wanted.

Use case 1 I get a sensor_msgs/BatteryState but I am only interested in the percentage. I apply the filter and can use only the data I am interested in.

Ideal features