Skip to content

Commit eb41931

Browse files
authored
Merge pull request ApolloAuto#32 from fengqikai1414/master
fix AttributeError when writing a new pb msg to rosbag
2 parents 2ab72b7 + f55c71e commit eb41931

File tree

1 file changed

+1
-1
lines changed
  • ros/ros_comm/rosbag/src/rosbag

1 file changed

+1
-1
lines changed

ros/ros_comm/rosbag/src/rosbag/bag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def write(self, topic, msg, t=None, raw=False):
349349
header = { 'topic' : topic, 'type' : msg_type, 'md5sum' : md5sum, 'message_definition' : pytype._full_text }
350350
else:
351351
if issubclass(msg.__class__, google.protobuf.message.Message):
352-
roslib.message.add_rosmsg_interface_for_protobuf(msgsg.__class__)
352+
roslib.message.add_rosmsg_interface_for_protobuf(msg.__class__)
353353
header = { 'topic' : topic, 'type' : msg.__class__._type, 'md5sum' : msg.__class__._md5sum, 'message_definition' : 'protobuf' }
354354
else:
355355
header = { 'topic' : topic, 'type' : msg.__class__._type, 'md5sum' : msg.__class__._md5sum, 'message_definition' : msg._full_text }

0 commit comments

Comments
 (0)