print more clean log

This commit is contained in:
Joe Dong
2023-09-11 18:34:11 +08:00
parent a95389721b
commit c9f89aa453
2 changed files with 6 additions and 5 deletions
+4 -4
View File
@@ -20,22 +20,22 @@ def generate_launch_description():
launch_file_dir = os.path.join(package_dir, 'launch')
launch1_include = IncludeLaunchDescription(
PythonLaunchDescriptionSource(
os.path.join(launch_file_dir, 'gemini2.launch.py')
os.path.join(launch_file_dir, 'dabai_dcw.launch.py')
),
launch_arguments={
'camera_name': 'camera_01',
'usb_port': '6-2.4.4.2',
'usb_port': '5-3.4.4.2.1',
'device_num': '2'
}.items()
)
launch2_include = IncludeLaunchDescription(
PythonLaunchDescriptionSource(
os.path.join(launch_file_dir, 'gemini2.launch.py')
os.path.join(launch_file_dir, 'dabai_dcw.launch.py')
),
launch_arguments={
'camera_name': 'camera_02',
'usb_port': '6-2.4.1',
'usb_port': '5-3.4.3.1',
'device_num': '2'
}.items()
)
+2 -1
View File
@@ -193,7 +193,8 @@ void OBCameraNode::setupProfiles() {
default_profile =
profiles->getVideoStreamProfile(width_[elem], height_[elem], format_[elem]);
} catch (const ob::Error &ex) {
RCLCPP_ERROR_STREAM(logger_, "Failed to get profile: " << ex.getMessage());
RCLCPP_ERROR_STREAM(
logger_, "Failed to get " << stream_name_[elem] << " << profile: " << ex.getMessage());
RCLCPP_ERROR_STREAM(
logger_, "Stream: " << magic_enum::enum_name(elem.first)
<< ", Stream Index: " << elem.second << ", Width: " << width_[elem]