From 9cb8d83ef3971d78db4c0f9b0798f852a8f4d860 Mon Sep 17 00:00:00 2001 From: Nathan Figueroa Date: Mon, 10 Jun 2024 03:28:23 +0000 Subject: [PATCH] Fix roscore switch in startup script; better tracing for AML failures; remove class filter --- phyto-arm | 2 +- src/aml_ctd/src/aml_ctd_node.py | 2 +- src/phyto_arm/launch/rosbag.launch | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/phyto-arm b/phyto-arm index d6eee92..80bc3d5 100755 --- a/phyto-arm +++ b/phyto-arm @@ -145,7 +145,7 @@ def _start(args): env['ROS_LOG_DIR'] = log_dir # The following should only launch once, with the main PhytO-ARM processes - roscore = None + rosbag = roscore = None if args.launch_name == "main": # Before we continue compress any older log files #print('Compressing older logs') diff --git a/src/aml_ctd/src/aml_ctd_node.py b/src/aml_ctd/src/aml_ctd_node.py index 1666f87..3823bf0 100755 --- a/src/aml_ctd/src/aml_ctd_node.py +++ b/src/aml_ctd/src/aml_ctd_node.py @@ -94,7 +94,7 @@ async def main(): try: parsed = amlxparser.parseAMLx(msg.data.decode()) except: - rospy.logerr(f'Failed to parse: {msg.data.decode()}') + rospy.logerr(f'Failed to parse: {msg.data.decode()}', exc_info=True) continue # Create a lookup table of measurements diff --git a/src/phyto_arm/launch/rosbag.launch b/src/phyto_arm/launch/rosbag.launch index 40c7666..7c79518 100644 --- a/src/phyto_arm/launch/rosbag.launch +++ b/src/phyto_arm/launch/rosbag.launch @@ -13,5 +13,5 @@ timestamps, or generate reports. See http://wiki.ros.org/rosbag/Cookbook + args="$(eval 'record --all --exclude /camera/.*|/ifcb/image|/ifcb/in|/ifcb/roi/image|/rosout_agg --output-prefix ' + arg('rosbag_prefix') + (' --split --size ' + str(arg('rosbag_size')) if arg('rosbag_size') else '') + (' --split --duration ' + str(arg('rosbag_duration')) if arg('rosbag_duration') else '') + ' --publish --lz4')" />