Skip to content

Commit 70a53c4

Browse files
Release 0.17.3 (#783)
* release 0.17.3 * switching to https, no tunner works, doesn't work with tunnel on my machine * fixing test * fixing obvious stuff in gnc_visualizer * Update tools/gnc_visualizer/scripts/visualizer.py Co-authored-by: Trey Smith <trey.smith@nasa.gov> --------- Co-authored-by: Trey Smith <trey.smith@nasa.gov>
1 parent ce57929 commit 70a53c4

File tree

11 files changed

+72
-45
lines changed

11 files changed

+72
-45
lines changed

RELEASE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Releases
22

3+
# Release 0.17.3
4+
5+
* Comms bridge added rate feature
6+
* Bug fixes
7+
* User feedback improvements
8+
39
# Release 0.17.2
410

511
* Adding Generic comms bridge

astrobee.doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ PROJECT_NAME = "NASA Astrobee Robot Software"
3939
# control system is used.
4040

4141

42-
PROJECT_NUMBER = 0.17.2
42+
PROJECT_NUMBER = 0.17.3
4343

4444
# Using the PROJECT_BRIEF tag one can provide an optional one line description
4545
# for a project that appears at the top of each page and should give viewer a

astrobee/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
cmake_minimum_required(VERSION 3.0)
1919
project(astrobee)
2020

21-
set(ASTROBEE_VERSION 0.17.2)
21+
set(ASTROBEE_VERSION 0.17.3)
2222

2323
## Compile as C++14, supported in ROS Kinetic and newer
2424
add_compile_options(-std=c++14)

debian/changelog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
astrobee (0.17.3) testing; urgency=medium
2+
3+
* Comms bridge added rate feature
4+
* Bug fixes
5+
* User feedback improvements
6+
7+
-- Astrobee Flight Software <astrobee-fsw@nx.arc.nasa.gov> Thu, 09 May 2024 11:50:34 -0700
8+
19
astrobee (0.17.2) UNRELEASED; urgency=medium
210

311
* Adding Generic comms bridge

scripts/setup/install_desktop_packages.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ then
5050

5151
if [ "${NO_TUNNEL}" -eq 1 ]; then
5252
echo "Getting the custom Debian without tunnel"
53-
sudo /bin/bash -c "echo \"deb [arch=amd64] http://astrobee.ndc.nasa.gov/software_new ${DIST} main\" > $arssrc" || exit 1
54-
sudo /bin/bash -c "echo \"deb-src http://astrobee.ndc.nasa.gov/software_new ${DIST} main\" >> $arssrc" || exit 1
53+
sudo /bin/bash -c "echo \"deb [arch=amd64] https://astrobee.ndc.nasa.gov/software_new ${DIST} main\" > $arssrc" || exit 1
54+
sudo /bin/bash -c "echo \"deb-src https://astrobee.ndc.nasa.gov/software_new ${DIST} main\" >> $arssrc" || exit 1
5555
else
5656
echo "Tunnelling to get the custom Debian"
57-
sudo /bin/bash -c "echo \"deb [arch=amd64] http://127.0.0.1:8765/software_new ${DIST} main\" > $arssrc" || exit 1
58-
sudo /bin/bash -c "echo \"deb-src http://127.0.0.1:8765/software_new ${DIST} main\" >> $arssrc" || exit 1
59-
ssh -N -L 127.0.0.1:8765:astrobee.ndc.nasa.gov:80 ${username}m.ndc.nasa.gov &
57+
sudo /bin/bash -c "echo \"deb [arch=amd64] https://127.0.0.1:8765/software_new ${DIST} main\" > $arssrc" || exit 1
58+
sudo /bin/bash -c "echo \"deb-src https://127.0.0.1:8765/software_new ${DIST} main\" >> $arssrc" || exit 1
59+
ssh -N -L 127.0.0.1:8765:astrobee.ndc.nasa.gov:443 ${username}m.ndc.nasa.gov &
6060
fi
6161

6262
trap "kill $! 2> /dev/null; sudo truncate -s 0 $arssrc; wait $!" 0 HUP QUIT ILL ABRT FPE SEGV PIPE TERM INT

simulation/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ cmake_minimum_required(VERSION 3.0)
1919
project(astrobee_gazebo)
2020

2121
if (ENABLE_GAZEBO)
22-
## Compile as C++14, supported in ROS Kinetic and newer
23-
add_compile_options(-std=c++14)
22+
## Compile as C++17
23+
add_compile_options(-std=c++17)
2424

2525
## Find catkin macros and libraries
2626
find_package(catkin2 REQUIRED COMPONENTS

tools/bag_processing/src/bag_processing/pixel_utils.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
RgbImage = np.ndarray # RGB image with array shape (H, W, 3), dtype=np.uint8.
6666
BayerImage = np.ndarray # Raw Bayer image with array shape (H, W), dtype=np.uint8
6767
BayerImagePatch = BayerImage # A really small BayerImage ;)
68-
ImageMask = np.ndarray # An image with array shape (H, W), dtype=np.bool
68+
ImageMask = np.ndarray # An image with array shape (H, W), dtype=bool
6969
Kernel = np.ndarray # An NxN kernel with N odd
7070
MonoImage = np.ndarray # Image with array shape (H, W), dtype=np.uint8
7171
FloatImage = np.ndarray # Image with array shape (H, W), dtype=np.float64
@@ -197,12 +197,12 @@ def median_filter(
197197
assert out.dtype == np.uint8
198198

199199
if compute_mask is None:
200-
compute_mask = np.ones(im.shape, dtype=np.bool)
200+
compute_mask = np.ones(im.shape, dtype=bool)
201201
else:
202202
assert compute_mask.shape == im.shape
203203

204204
# edges - slower due to use of np.ma.median() to exclude out-of-bounds neighbors
205-
edge_mask = np.zeros(im.shape, dtype=np.bool)
205+
edge_mask = np.zeros(im.shape, dtype=bool)
206206
edge_mask[:2, :] = compute_mask[:2, :]
207207
edge_mask[-2:, :] = compute_mask[-2:, :]
208208
edge_mask[:, :2] = compute_mask[:, :2]
@@ -228,7 +228,7 @@ def median_filter(
228228
times.append(time.time()) # 6
229229

230230
# middle - runs faster using np.median()
231-
middle_mask = np.zeros(im.shape, dtype=np.bool)
231+
middle_mask = np.zeros(im.shape, dtype=bool)
232232
middle_mask[2:-2, 2:-2] = compute_mask[2:-2, 2:-2]
233233
middle_y, middle_x = np.nonzero(middle_mask)
234234
y = y0[np.newaxis, middle_y, middle_x] + y_off[:, np.newaxis, np.newaxis]
@@ -801,7 +801,7 @@ def __init__(self, image_shape: ArrayShape, bad_coords: CoordArray, note: str =
801801

802802
def _init_filter(self, bad_coords: CoordArray) -> None:
803803
"Initialize self.bad_pixels for interpolation."
804-
bad_image = np.zeros(self.image_shape, dtype=np.bool)
804+
bad_image = np.zeros(self.image_shape, dtype=bool)
805805
bad_image[tuple(bad_coords)] = True
806806
for y, x in zip(*bad_coords):
807807
kernel = get_bayer_neighbor_kernel(

tools/gnc_visualizer/scripts/communications/com_manager.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,17 @@ def set_com_method(self, com_method, args=None):
9393
partition_name, given_peer, domain, public_ip
9494
):
9595
# Print result
96-
print >> sys.stderr, (
97-
self.config.get_all_warnings() + self.config.get_all_info()
96+
print(
97+
self.config.get_all_warnings() + self.config.get_all_info(),
98+
file=sys.stderr,
9899
)
99100
else:
100101
# Print result and exit
101-
print >> sys.stderr, (
102+
print(
102103
self.config.get_all_errors()
103104
+ self.config.get_all_warnings()
104-
+ self.config.get_all_info()
105+
+ self.config.get_all_info(),
106+
file=sys.stderr,
105107
)
106108
return False
107109

tools/gnc_visualizer/scripts/communications/configuration_support.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python
22

3+
import configparser
34
import datetime
45
import socket
56
import string
@@ -8,8 +9,6 @@
89
from os import path as osPath
910
from os import remove
1011

11-
import ConfigParser
12-
1312
filepath = osPath.dirname(osPath.realpath(__file__))
1413

1514
BASE_DDS_PROFILE_FILE = filepath + "/dds_types/BaseDDSProfile.xml"
@@ -21,7 +20,7 @@ class Preferences:
2120
def __init__(
2221
self, partition_name=None, given_peer=None, domain=None, public_ip=None
2322
):
24-
self.config = ConfigParser.ConfigParser()
23+
self.config = configparser.ConfigParser()
2524
self.dom = None
2625
self.partition_name = partition_name
2726
self.initial_peers = dict()
@@ -154,7 +153,7 @@ def clear_node_list(self, node_list, sub_tag_name):
154153
peer.unlink()
155154

156155
def write_node_list(self, node_list, sub_tag_name, children):
157-
children = [children] if isinstance(children, basestring) else children
156+
children = [children] if isinstance(children, str) else children
158157
for child in children:
159158
new_node = node_list.ownerDocument.createElement(sub_tag_name)
160159
new_node.appendChild(

tools/gnc_visualizer/scripts/plot_types.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121

2222
import numpy as np
2323
import pyqtgraph as pg
24-
from pyqtgraph.Qt import QtCore, QtGui
24+
from PyQt5 import QtCore
25+
from PyQt5.QtWidgets import QGraphicsPathItem
2526

2627
DISPLAY_TIME = 10
2728

@@ -72,10 +73,10 @@ def update_plot(self, data):
7273
self.setLimits(xMin=max(0, t - DISPLAY_TIME), xMax=t)
7374

7475

75-
class PathItem(pg.QtGui.QGraphicsPathItem):
76+
class PathItem(QGraphicsPathItem):
7677
def __init__(self, pen):
7778
self.path = pg.arrayToQPath(np.zeros(0), np.zeros(0), "all")
78-
pg.QtGui.QGraphicsPathItem.__init__(self, self.path)
79+
QGraphicsPathItem.__init__(self, self.path)
7980
self.setPen(pen)
8081
self.last_time = None
8182

0 commit comments

Comments
 (0)