Skip to content

[urdf_parser_py] Python3 compatibility - #19

Merged
isucan merged 1 commit into
ros:masterfrom
severin-lemaignan:master
Dec 17, 2013
Merged

isucan merged 1 commit into
ros:masterfrom
severin-lemaignan:master

Conversation

@severin-lemaignan

Copy link
Copy Markdown

No description provided.

@isucan

isucan commented Dec 17, 2013

Copy link
Copy Markdown
Contributor

My knowledge of Python is reduced. Does this still work with Python2? Has it been tested?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This script needs "from future import print_function" to maintain 2.7 compat.

@severin-lemaignan

Copy link
Copy Markdown
Author

I have of course tested with python2 as well. And no, it does not require to import from future (at least if python2.6 and python2.7 are enough for you).

@mikeferguson

Copy link
Copy Markdown

Huh, you're right, I didn't realize that about print_function and 2.6/7

Otherwise looks good to me, although it appears we don't have much of a test suite for the python package, how did you test it @severin-lemaignan ?

@severin-lemaignan

Copy link
Copy Markdown
Author

Checking the diff of the output of script/display_urdf is the same for python2 and python3 on a given urdf file.

isucan added a commit that referenced this pull request Dec 17, 2013
[urdf_parser_py] Python3 compatibility
@isucan
isucan merged commit 6920dab into ros:master Dec 17, 2013
@scpeters scpeters mentioned this pull request Jun 6, 2014
Karsten1987 pushed a commit to Karsten1987/urdfdom that referenced this pull request Nov 15, 2018
Fix handling rpy with pitch equal to +/-M_PI/2
clalancette pushed a commit that referenced this pull request Oct 16, 2020
clalancette pushed a commit that referenced this pull request Jun 30, 2021
clalancette pushed a commit that referenced this pull request Jul 6, 2021
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

Successfully merging this pull request may close these issues.

3 participants