-
Notifications
You must be signed in to change notification settings - Fork 266
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
Python 3 transition #215
Closed
Closed
Python 3 transition #215
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
99f24ab
builder: Build against python3
sfalexrog b5cf47f
tests: Create ServiceProxy during validation
sfalexrog ad43028
builder: Fix typo (meodic -> melodic)
sfalexrog d944f57
builder: Put python3.yaml into image
sfalexrog cb26f09
builder: Fix python3.yaml identation
sfalexrog 6d4dd69
tests: Use python3 for most of it, python2 for cv2
sfalexrog b359414
builder: Drop python2 tests
sfalexrog b37a32d
builder: Add pip for python2 back
sfalexrog 77189b5
builder: Install butterfly system-wide
sfalexrog d44a80b
builder: Don't try to deactivate nonexistent venv
sfalexrog 99632bf
Merge remote-tracking branch 'origin/master' into buster-python3
sfalexrog 0ffde38
builder: Install ptvsd for python2 explicitly
sfalexrog 60a77a3
builder: Make pip refer to pip2 by default
sfalexrog 1da2f76
builder: Use pip3 for butterfly installation
sfalexrog f7eda0b
Merge remote-tracking branch 'origin/master' into buster-python3
sfalexrog 4f110d4
builder: Install rpi_ws281x for Python 2 and 3
sfalexrog 6b9d90d
aruco_pose: Use bash trampoline for dynamic_reconfigure
sfalexrog 8042669
clever: Remove shebang from basic.py test
sfalexrog 688b4e3
aruco_pose: Convert largemap test to ros_pytest
sfalexrog 360eb02
Revert "aruco_pose: Use bash trampoline for dynamic_reconfigure"
sfalexrog 63a792b
aruco_pose: Use python2 shebang
sfalexrog a01d199
selfcheck: Be more Python3-compatible
sfalexrog cda7858
clover: Update ros3djs, THREE.js
sfalexrog File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env python | ||
#!/usr/bin/env python3 | ||
|
||
# Copyright (C) 2018 Copter Express Technologies | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,19 @@ | ||
#!/usr/bin/env python | ||
import sys | ||
import unittest | ||
import json | ||
import rospy | ||
import rostest | ||
import pytest | ||
|
||
from sensor_msgs.msg import Image | ||
from visualization_msgs.msg import MarkerArray as VisMarkerArray | ||
|
||
@pytest.fixture | ||
def node(): | ||
return rospy.init_node('test_aruco_largemap', anonymous=True) | ||
|
||
class TestArucoPose(unittest.TestCase): | ||
def setUp(self): | ||
rospy.init_node('test_aruco_largemap', anonymous=True) | ||
def test_large_map_image(node): | ||
img = rospy.wait_for_message('aruco_map/image', Image, timeout=5) | ||
assert img.width == 2000 | ||
assert img.height == 2000 | ||
assert img.encoding in ('mono8', 'rgb8') | ||
|
||
def test_map_image(self): | ||
img = rospy.wait_for_message('aruco_map/image', Image, timeout=5) | ||
self.assertEqual(img.width, 2000) | ||
self.assertEqual(img.height, 2000) | ||
self.assertIn(img.encoding, ('mono8', 'rgb8')) | ||
|
||
def test_map_visualization(self): | ||
vis = rospy.wait_for_message('aruco_map/visualization', VisMarkerArray, timeout=5) | ||
|
||
|
||
rostest.rosrun('aruco_pose', 'test_aruco_largemap', TestArucoPose, sys.argv) | ||
def test_large_map_visualization(node): | ||
vis = rospy.wait_for_message('aruco_map/visualization', VisMarkerArray, timeout=5) | ||
assert len(vis.markers) == 11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env python | ||
#!/usr/bin/env python3 | ||
|
||
from distutils.core import setup | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
python3-wxgtk: | ||
debian: | ||
buster: [python3-wxgtk4.0] | ||
python3-serial: | ||
debian: | ||
buster: [python3-serial] | ||
python3-requests: | ||
debian: | ||
buster: [python3-requests] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env python | ||
#!/usr/bin/env python3 | ||
|
||
# test backwards compatibility | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env python | ||
|
||
# Make sure our Python 2 software is installed | ||
|
||
import cv2 | ||
|
||
print(cv2.getBuildInformation()) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
flask==1.1.1 | ||
docopt==0.6.2 | ||
geopy==1.11.0 | ||
smbus2==0.2.1 | ||
VL53L1X==0.0.2 | ||
geopy==1.20.0 | ||
smbus2==0.3.0 | ||
VL53L1X==0.0.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#!/usr/bin/env python | ||
import rospy | ||
import pytest | ||
from mavros_msgs.msg import State | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is diz?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Picked this from #154, which "contained useful code" (your own words!)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK :) Когда это в виде изменения, бросилось в глаза.