ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
It's very likely this has nothing to do with continuous
or fixed
joints:
UnicodeEncodeError: 'ascii' codec can't encode character u'\u202c' in position 5988: ordinal not in range(128)
\u202c
is (according to this random unicode website) a "POP DIRECTIONAL FORMATTING" character.
And it goes on to mention that this character is often used in .pdf
files.
Did you by any chance copy some limits or other pieces of text from a .pdf
into your .urdf
?
If so, that is most likely where the problem is.
It's all parsed as ASCII text, so you'll need to make sure there are no extended or UTF characters in your .urdf
. Otherwise, you'll get (variants) of the error message you posted.
2 | No.2 Revision |
It's very likely this has nothing to do with continuous
or fixed
joints:
UnicodeEncodeError: 'ascii' codec can't encode character u'\u202c' in position 5988: ordinal not in range(128)
\u202c
is (according to this random unicode website) a "POP DIRECTIONAL FORMATTING" character.
And it goes on to mention that this character is often used in .pdf
files.
Did you by any chance copy some limits or other pieces of text from a .pdf
into your .urdf
?
If so, that is most likely where the problem is.
It's all parsed as ASCII text, so you'll need to make sure there are no extended or UTF characters in your .urdf
. Otherwise, you'll get (variants) of the error message you posted.
Edit: according to this SO question, you could use the following pgrep
command to search for the non-ASCII characters:
grep --color='auto' -P -n "[\x80-\xFF]" /path/to/your/file.urdf
or:
grep --color='auto' -P -n "[^\x00-\x7F]" /path/to/your/file.urdf