Skip to content

Commit f51ba23

Browse files
Merge pull request #500 from nasa/develop
Release 0.16.5
2 parents ca97763 + 27b6315 commit f51ba23

48 files changed

Lines changed: 991 additions & 389 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

RELEASE.md

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

3+
## Release 0.16.5
4+
5+
* Fix multiple bugs
6+
37
## Release 0.16.4
48

59
* Auto-exposure

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.16.4
42+
PROJECT_NUMBER = 0.16.5
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.16.4)
21+
set(ASTROBEE_VERSION 0.16.5)
2222

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

behaviors/arm/src/arm_nodelet.cc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@ class ArmNodelet : public ff_util::FreeFlyerNodelet {
196196
fsm_.Add(STATE::DEPLOYING_TILTING,
197197
TILT_COMPLETE,
198198
[this](FSM::Event const& event) -> FSM::State {
199+
if (!calibrated_) {
200+
if (!CalibrateGripper())
201+
return Result(RESPONSE::CALIBRATE_FAILED);
202+
return STATE::CALIBRATING;
203+
}
199204
return Result(RESPONSE::SUCCESS);
200205
});
201206

@@ -252,8 +257,8 @@ class ArmNodelet : public ff_util::FreeFlyerNodelet {
252257
return STATE::STOWING_SETTING;
253258
else if (goal_set_)
254259
return STATE::SETTING;
255-
else // We don't know where we were, return error
256-
return Result(RESPONSE::NO_GOAL);
260+
else // Finished
261+
return Result(RESPONSE::SUCCESS);
257262
}
258263
if (!Arm(PAN))
259264
return Result(RESPONSE::PAN_FAILED);

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
astrobee (0.16.5) testing; urgency=medium
2+
3+
* Fix multiple bugs
4+
5+
-- Astrobee Flight Software <astrobee-fsw@nx.arc.nasa.gov> Mon, 23 May 2022 14:15:36 -0700
6+
17
astrobee (0.16.4) testing; urgency=medium
28

39
* Auto-exposure

hardware/is_camera/src/camera.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ namespace is_camera {
356356
} else {
357357
return;
358358
}
359-
enable = bayer_enable_;
359+
bayer_enable_ = enable;
360360
}
361361

362362
// Timer that periodically changes camera exposure based on the captured image's histogram

localization/camera/CMakeLists.txt

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,7 @@ add_compile_options(-std=c++14)
2323

2424
## Find catkin macros and libraries
2525
find_package(catkin2 REQUIRED COMPONENTS
26-
roscpp
27-
std_msgs
28-
sensor_msgs
29-
cv_bridge
30-
image_transport
31-
rosbag
3226
ff_common
33-
ff_msgs
34-
nodelet
3527
config_reader
3628
)
3729

@@ -40,19 +32,17 @@ find_package(cmake_modules REQUIRED)
4032
find_package(Boost REQUIRED COMPONENTS system)
4133
find_package(Eigen3 REQUIRED)
4234

35+
# Find OpenCV
36+
SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake")
37+
find_package(OpenCV331 REQUIRED)
38+
39+
40+
4341
catkin_package(
4442
INCLUDE_DIRS include
4543
LIBRARIES camera
4644
CATKIN_DEPENDS
47-
roscpp
48-
std_msgs
49-
sensor_msgs
50-
cv_bridge
51-
image_transport
52-
rosbag
5345
ff_common
54-
ff_msgs
55-
nodelet
5646
config_reader
5747
)
5848

@@ -65,6 +55,7 @@ include_directories(
6555
include
6656
${catkin_INCLUDE_DIRS}
6757
${EIGEN3_INCLUDE_DIR}
58+
${OpenCV_INCLUDE_DIRS}
6859
)
6960

7061
# Declare C++ libraries
@@ -73,7 +64,7 @@ add_library(camera
7364
src/camera_params.cc
7465
)
7566
add_dependencies(camera ${catkin_EXPORTED_TARGETS})
76-
target_link_libraries(camera ${catkin_LIBRARIES} ${EIGEN_LIBRARIES})
67+
target_link_libraries(camera ${catkin_LIBRARIES} ${EIGEN_LIBRARIES} ${OpenCV_LIBRARIES})
7768

7869
## Declare a C++ executable: undistort_image
7970
add_executable(undistort_image tools/undistort_image.cc)
@@ -127,4 +118,4 @@ install(DIRECTORY include/${PROJECT_NAME}/
127118
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
128119
FILES_MATCHING PATTERN "*.h"
129120
PATTERN ".svn" EXCLUDE
130-
)
121+
)

localization/camera/package.xml

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<name>camera</name>
33
<version>1.0.0</version>
44
<description>
5-
This package localizes the Astrobee on a map.
5+
This package provides camera utilities.
66
</description>
77
<license>
88
Apache License, Version 2.0
@@ -14,28 +14,8 @@
1414
Astrobee Flight Software
1515
</maintainer>
1616
<buildtool_depend>catkin</buildtool_depend>
17-
<build_depend>roscpp</build_depend>
18-
<build_depend>message_generation</build_depend>
19-
<build_depend>std_msgs</build_depend>
20-
<build_depend>sensor_msgs</build_depend>
21-
<build_depend>cv_bridge</build_depend>
22-
<build_depend>image_transport</build_depend>
23-
<build_depend>rosbag</build_depend>
2417
<build_depend>ff_common</build_depend>
25-
<build_depend>ff_msgs</build_depend>
26-
<build_depend>nodelet</build_depend>
27-
<build_depend>tf2</build_depend>
2818
<build_depend>config_reader</build_depend>
29-
<run_depend>roscpp</run_depend>
30-
<run_depend>message_runtime</run_depend>
31-
<run_depend>std_msgs</run_depend>
32-
<run_depend>sensor_msgs</run_depend>
33-
<run_depend>cv_bridge</run_depend>
34-
<run_depend>image_transport</run_depend>
35-
<run_depend>rosbag</run_depend>
3619
<run_depend>ff_common</run_depend>
37-
<run_depend>ff_msgs</run_depend>
38-
<run_depend>nodelet</run_depend>
39-
<run_depend>tf2</run_depend>
4020
<run_depend>config_reader</run_depend>
4121
</package>

localization/depth_odometry/CMakeLists.txt

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ add_compile_options(-std=c++14)
2323

2424
## Find catkin macros and libraries
2525
find_package(catkin2 REQUIRED COMPONENTS
26-
camera
26+
cv_bridge
2727
ff_util
28+
image_transport
2829
localization_common
2930
localization_measurements
3031
msg_conversions
32+
nodelet
3133
optimization_common
3234
point_cloud_common
3335
vision_common
@@ -48,7 +50,7 @@ find_package(pcl_conversions REQUIRED)
4850
catkin_package(
4951
INCLUDE_DIRS include ${CERES_INCLUDE_DIRS} ${GTSAM_INCLUDE_DIR} ${PCL_INCLUDE_DIRS} ${pcl_conversions_INCLUDE_DIRS}
5052
LIBRARIES ${PROJECT_NAME} ${CERES_LIBRARIES} ${PCL_LIBRARIES} ${GTSAM_LIBRARIES}
51-
CATKIN_DEPENDS roscpp ff_msgs ff_util localization_common localization_measurements msg_conversions optimization_common point_cloud_common vision_common
53+
CATKIN_DEPENDS roscpp cv_bridge ff_msgs ff_util image_transport localization_common localization_measurements msg_conversions nodelet optimization_common point_cloud_common vision_common
5254
DEPENDS gtsam pcl
5355
)
5456

@@ -88,24 +90,29 @@ if(CATKIN_ENABLE_TESTING)
8890
target_link_libraries(test_point_to_plane_icp_depth_odometry
8991
${PROJECT_NAME} ${catkin_LIBRARIES}
9092
)
91-
add_rostest_gtest(test_image_features_with_known_correspondences_aligner_depth_odometry
92-
test/test_image_features_with_known_correspondences_aligner_depth_odometry.test
93-
test/test_image_features_with_known_correspondences_aligner_depth_odometry.cc
94-
test/test_utilities.cc
95-
)
96-
target_link_libraries(test_image_features_with_known_correspondences_aligner_depth_odometry
97-
${PROJECT_NAME} ${catkin_LIBRARIES}
98-
)
9993

100-
find_package(rostest REQUIRED)
101-
add_rostest_gtest(test_depth_odometry_wrapper
102-
test/test_depth_odometry_wrapper.test
103-
test/test_depth_odometry_wrapper.cc
104-
test/test_utilities.cc
105-
)
106-
target_link_libraries(test_depth_odometry_wrapper
107-
${PROJECT_NAME} ${catkin_LIBRARIES}
108-
)
94+
# Ignore these tests if OpenCV 4 installed as cv_bridge will cause a runtime segfault
95+
# since it uses opencv4 on newer ros versions and the rest of the code uses opencv3
96+
find_package(OpenCV 4 QUIET)
97+
if(NOT OpenCV_FOUND)
98+
add_rostest_gtest(test_image_features_with_known_correspondences_aligner_depth_odometry
99+
test/test_image_features_with_known_correspondences_aligner_depth_odometry.test
100+
test/test_image_features_with_known_correspondences_aligner_depth_odometry.cc
101+
test/test_utilities.cc
102+
)
103+
target_link_libraries(test_image_features_with_known_correspondences_aligner_depth_odometry
104+
${PROJECT_NAME} ${catkin_LIBRARIES}
105+
)
106+
107+
add_rostest_gtest(test_depth_odometry_wrapper
108+
test/test_depth_odometry_wrapper.test
109+
test/test_depth_odometry_wrapper.cc
110+
test/test_utilities.cc
111+
)
112+
target_link_libraries(test_depth_odometry_wrapper
113+
${PROJECT_NAME} ${catkin_LIBRARIES}
114+
)
115+
endif()
109116

110117
endif()
111118

localization/depth_odometry/package.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414
Astrobee Flight Software
1515
</maintainer>
1616
<buildtool_depend>catkin</buildtool_depend>
17-
<build_depend>camera</build_depend>
17+
<build_depend>cv_bridge</build_depend>
1818
<build_depend>ff_msgs</build_depend>
1919
<build_depend>ff_util</build_depend>
20+
<build_depend>image_transport</build_depend>
2021
<build_depend>localization_common</build_depend>
2122
<build_depend>localization_measurements</build_depend>
2223
<build_depend>msg_conversions</build_depend>
@@ -27,9 +28,10 @@
2728
<build_depend>point_cloud_common</build_depend>
2829
<build_depend>vision_common</build_depend>
2930
<build_depend>roscpp</build_depend>
30-
<run_depend>camera</run_depend>
31+
<run_depend>cv_bridge</run_depend>
3132
<run_depend>ff_msgs</run_depend>
3233
<run_depend>ff_util</run_depend>
34+
<run_depend>image_transport</run_depend>
3335
<run_depend>localization_common</run_depend>
3436
<run_depend>localization_measurements</run_depend>
3537
<run_depend>msg_conversions</run_depend>

0 commit comments

Comments
 (0)