Skip to content

Commit b296380

Browse files
committed
cras_bag_tools: filter_bag: ExportCmdVelToCSV: Fix.
1 parent d44b705 commit b296380

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cras_bag_tools/src/cras_bag_tools/message_filters.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2627,7 +2627,8 @@ def _get_fields(self):
26272627

26282628
def _msg_to_csv_row(self, topic, msg, stamp, header, tags):
26292629
msg_stamp = msg.header.stamp if msg._type == TwistStamped._type else stamp
2630-
return msg_stamp, msg.linear.x, msg.angular.z
2630+
twist = msg if msg._type == Twist._type else msg.twist
2631+
return msg_stamp, twist.linear.x, twist.angular.z
26312632

26322633

26332634
class ExportCameraInfoToYAML(MessageToYAMLExporterBase):

0 commit comments

Comments
 (0)