Skip to content
Snippets Groups Projects
Commit a7fd0728 authored by Paul Beuchat's avatar Paul Beuchat
Browse files

Fixes to minor bugs introduced by the previous commit to the camera and aruco nodes

parent e8821123
Branches master
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@
/>
<param
name = "aruco_detector_save_image_path"
value = "1"
value = "/home/asc/saved_camera_images/"
/>
<param
name = "aruco_detector_should_save_all_aruco_images"
......
......@@ -67,7 +67,7 @@
<param name = "aruco_detector_desired_camera_frame_width" value = "1920" />
<param name = "aruco_detector_desired_camera_fps" value = "5" />
<param name = "aruco_detector_marker_size" value = "0.250" />
<param name = "aruco_detector_save_image_path" value = "1" />
<param name = "aruco_detector_save_image_path" value = "/home/asc/saved_camera_images/" />
<param name = "aruco_detector_should_save_all_aruco_images" value = "False" />
<param name = "aruco_detector_should_publish_camera_images" value = "True" />
<param name = "aruco_detector_should_show_camera_images" value = "False" />
......
......@@ -16,7 +16,7 @@
/>
<param
name = "camera_capture_usb_camera_device_number"
value = "2"
value = "0"
/>
<param
name = "camera_capture_desired_camera_frame_height"
......@@ -40,11 +40,11 @@
/>
<param
name = "camera_capture_save_image_path"
value = "1"
value = "/home/asc/saved_camera_images/"
/>
<param
name = "camera_capture_should_save_all_chessboard_images"
value = "False"
value = "True"
/>
<param
name = "camera_capture_should_publish_camera_images"
......
......@@ -349,6 +349,11 @@ class ArucoDetector:
# Initialize a sequence number for each camera frame that is read
self.camera_frame_sequence_number = 0
# Display command line command for publishing a
# request to save a camera image
if (self.aruco_detector_verbosity >= 1):
rospy.loginfo("[ARUCO DETECTOR] publish request from command line to save a single camera image using: rostopic pub --once " + node_namespace + "request_save_image std_msgs/UInt32 1")
# Display the status
if (self.aruco_detector_verbosity >= 1):
rospy.loginfo("[ARUCO DETECTOR] Node initialisation complete")
......
......@@ -294,6 +294,11 @@ class CameraCapture:
self.camera_frame_height = dimensions[0]
self.camera_frame_width = dimensions[1]
# Display command line command for publishing a
# request to save a camera image
if (self.camera_capture_verbosity >= 1):
rospy.loginfo("[CAMERA CAPTURE] publish request from command line to save a single camera image using: rostopic pub --once " + node_namespace + "request_save_image std_msgs/UInt32 1")
# Display the status
if (self.camera_capture_verbosity >= 1):
rospy.loginfo("[CAMERA CAPTURE] Node initialisation complete")
......@@ -335,7 +340,7 @@ class CameraCapture:
# > The second argument is the grid size of internal
# corner points that the function should search for
# > This function can be quite slow when a chessboard is not visible in the image
internal_corner_grid_size = (self.self.chessboard_size_height,self.self.chessboard_size_width)
internal_corner_grid_size = (self.chessboard_size_height,self.chessboard_size_width)
chessboard_found, chessboard_corners = cv2.findChessboardCorners(current_frame_as_gray, internal_corner_grid_size, flags=find_flags)
# If found, then set the save image flag to true
if (chessboard_found == True):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment