srv / srv_tools

ROS-Stack with some tools
63 stars 56 forks source link

Error while Changing Frame ID using change_frame_id.py #22

Open donrv opened 6 years ago

donrv commented 6 years ago

vasanth@vasanthaw:~/catkin_ws$ rosrun bag_tools change_frame_id.py -i /home/vasanth/vijayawada/2018-10-30-08-17-42_0.bag -o /home/vasanth/vijayawada/2018-10-30-08-17-42_0_2.bag -f imu -t /imu/data [INFO] [1540993697.486695]: Processing input bagfile: /home/vasanth/vijayawada/2018-10-30-08-17-42_0.bag [INFO] [1540993697.487441]: Writing to output bagfile: /home/vasanth/vijayawada/2018-10-30-08-17-42_0_2.bag [INFO] [1540993697.488037]: Changing topics: ['/imu/data'] [INFO] [1540993697.488550]: Writing frame_id: imu Traceback (most recent call last): File "/home/vasanth/catkin_ws/src/srv_tools/bag_tools/scripts/change_frame_id.py", line 68, in change_frame_id(args.i,args.o,args.f,args.t) File "/home/vasanth/catkin_ws/src/srv_tools/bag_tools/scripts/change_frame_id.py", line 49, in change_frame_id for topic, msg, t in rosbag.Bag(inbag,'r').read_messages(): File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosbag/bag.py", line 2337, in read_messages yield self.seek_and_read_message_data_record((entry.chunk_pos, entry.offset), raw) File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosbag/bag.py", line 2475, in seek_and_read_message_data_record msg_type = _get_message_type(connection_info) File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosbag/bag.py", line 1571, in _get_message_type message_type = genpy.dynamic.generate_dynamic(info.datatype, info.msg_def)[info.datatype] File "/opt/ros/kinetic/lib/python2.7/dist-packages/genpy/dynamic.py", line 168, in generate_dynamic tmp_file.file.write(full_text.encode()) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 6125: ordinal not in range(128)

KSorte commented 1 year ago

Hello. Could you share the file?