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

Consider using Python 3 #154

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions builder/image-ros.sh
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ apt-get install -y --no-install-recommends \
echo_stamp "Install GeographicLib datasets (needed for mavros)" \
&& wget -qO- https://raw.githubusercontent.com/mavlink/mavros/master/mavros/scripts/install_geographiclib_datasets.sh | bash

echo_stamp "Installing rospkg and catkin_pkg for Python3"
pip3 install rospkg catkin_pkg

echo_stamp "Running tests"
catkin_make run_tests && catkin_test_results

Expand Down
1 change: 1 addition & 0 deletions builder/image-software.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ python-dev \
python3-dev \
python-systemd \
mjpg-streamer=2.0 \
python3-yaml \
&& echo_stamp "Everything was installed!" "SUCCESS" \
|| (echo_stamp "Some packages wasn't installed!" "ERROR"; exit 1)

Expand Down
1 change: 1 addition & 0 deletions builder/image-validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ source /home/pi/catkin_ws/devel/setup.bash
cd /home/pi/catkin_ws/src/clever/builder/test/
./tests.sh
./tests.py
./tests3.py
32 changes: 32 additions & 0 deletions builder/test/tests3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env python3

# validate all required modules installed

import rospy
from geometry_msgs.msg import PoseStamped

import mavros
from mavros_msgs.msg import State, StatusText, ExtendedState
from mavros_msgs.srv import CommandBool, CommandLong, SetMode

from std_srvs.srv import Trigger
from clever.srv import GetTelemetry, Navigate, NavigateGlobal, SetPosition, SetVelocity, \
SetAttitude, SetRates

get_telemetry = rospy.ServiceProxy('get_telemetry', GetTelemetry)

import tf2_ros
import tf2_geometry_msgs

import cv2
import cv2.aruco

import VL53L1X
import numpy
import pymavlink
from pymavlink import mavutil
import rpi_ws281x
import pigpio
from espeak import espeak

print(cv2.getBuildInformation())