Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while Changing Frame ID using change_frame_id.py #22

Open
donrv opened this issue Oct 31, 2018 · 1 comment
Open

Error while Changing Frame ID using change_frame_id.py #22

donrv opened this issue Oct 31, 2018 · 1 comment

Comments

@donrv
Copy link

donrv commented Oct 31, 2018

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
Copy link

KSorte commented Jul 12, 2023

Hello. Could you share the file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants