@@ -86,9 +86,6 @@ def add_arguments(self, parser, cli_name):
8686 'multiple action interfaces. Action interfaces include "GOAL_SERVICE", '
8787 '"CANCEL_SERVICE", "RESULT_SERVICE", "FEEDBACK_TOPIC" and "STATUS_TOPIC". '
8888 'If this option is not set, output messages from all interfaces of the action.' )
89- parser .add_argument (
90- '--queue-size' , '-q' , type = unsigned_int , default = 100 ,
91- help = 'The length of output message queue. The default is 100.' )
9289 parser .add_argument (
9390 '--csv' , action = 'store_true' , default = False ,
9491 help = (
@@ -142,7 +139,7 @@ def main(self, *, args):
142139 raise RuntimeError (f"The service type '{ args .action_type } ' is invalid" )
143140
144141 if action_module is None :
145- raise RuntimeError (' Could not load the type for the passed action' )
142+ raise RuntimeError (f" Could not load the action type for ' { args . action_type } '" )
146143
147144 self .csv = args .csv
148145 self .truncate_length = args .truncate_length if not args .full_length else None
@@ -165,8 +162,9 @@ def main(self, *, args):
165162 status_topic = args .action_name + '/_action/status'
166163 status_topic_type = action_module .Impl .GoalStatusMessage
167164
168- # Queue for messages from above topic
169- self .output_msg_queue = queue .Queue (args .queue_size )
165+ # Queue for messages from above topic. The queue size is set to 100.
166+ # If the queue is full, the message will be dropped.
167+ self .output_msg_queue = queue .Queue (100 )
170168
171169 run_thread = True
172170 # Create a thread to output message from output_queue
@@ -184,6 +182,9 @@ def message_handler():
184182
185183 with NodeStrategy (args ) as node :
186184 send_goal_event_sub = None
185+ # TODO: The QoS for the service event publisher, feedback publisher and status
186+ # publisher can be specified by the user, so new parameters need to be added to allow
187+ # specifying QoS of subscription to replace the current fixed QoS.
187188 if ActionInterfaces .GOAL_SERVICE .value in output_interface_list :
188189 send_goal_event_sub : Subscription [EventMessage ] = node .create_subscription (
189190 send_goal_event_msg_type ,
0 commit comments