Skip to content

ros_tts: ROS 2 declarations

Direct rclpy publisher/subscriber arguments use type, name, callback/QoS ordering. Compatibility wrapper calls include the node as their first argument. Service arguments identify the service type and name. Namespace/remapping and computed names must be resolved from the active launch configuration.

scripts/audio_lips.py

Source: head-ros-nodes/ros/ros_tts/scripts/audio_lips.py

Kind Arguments in source order Line
Publisher Visemes, self.viseme_topic, topic_qos(depth=10) 136
Retained publisher self.node, String, self.status_topic 139
Publisher Empty, '/hr/animation/cancel_visemes', topic_qos(depth=1) 142
Subscription self.node, String, '/hr/control/audio_interrupt', self._interrupt_callback, depth=10 155
Subscription self.node, String, self.command_topic, self._command_callback, depth=10 162
Subscription AudioStream, self.audio_topic, self._audio_callback, sensor_or_stream_qos(depth=10) 169

scripts/tts_talker.py

Source: head-ros-nodes/ros/ros_tts/scripts/tts_talker.py

Kind Arguments in source order Line
Service server TTSLength, speech_name('length'), self.tts_length 202
Service server TTSData, speech_name('data'), self.tts_data 203
Service server StringTrigger, speech_name('interrupt'), self.interrupt 204
Service client StringTrigger, LANGUAGE_DETECT_SERVICE 205
Service server Trigger, speech_name('wait_for_tts'), self.wait_for_tts 207
Service server GetInteger, speech_name('request_queue_size'), self.request_queue_size 208
Service server Trigger, speech_name('clear_tts_queue'), self.clear_tts_queue 209
Subscription self.node, String, '/hr/perception/hear/event', self.user_speech_event_cb, depth=10 211
Subscription self.node, ChatMessage, '/hr/perception/hear/sentence', self.user_speech_cb, depth=10 218
Publisher self.node, TTS, speech_name('robot_said'), depth=10 225
Publisher self.node, String, '/hr/control/audio_interrupt', depth=1 226
Subscription self.node, String, speech_name(tts_control), self.tts_control, depth=10 236
Subscription self.node, TTS, speech_name(tts_topic), self.say, depth=10 241
Publisher self.node, String, speech_name('data'), depth=10 244

src/tts/action_runner.py

Source: head-ros-nodes/ros/ros_tts/src/tts/action_runner.py

Kind Arguments in source order Line
Publisher ros_node, SetAnimation, '/hr/animation/set_animation', depth=1 42
Publisher ros_node, SetExpression, '/hr/animation/set_expression', depth=1 45
Publisher ros_node, SetAnimation, '/hr/animation/set_arm_animation', depth=1 48
Publisher ros_node, ChatMessage, '/hr/perception/hear/sentence', depth=1 51
Publisher ros_node, String, '/hr/interaction/priming', depth=1 54
Service client ros_node, RunByName, '/hr/control/performances/background/run_by_name' 60
Service client ros_node, RunByName, '/hr/behavior/interactive_fiction/start_tree' 67
Service client ros_node, StringTrigger, '/hr/interaction/set_context' 74
Service client ros_node, StringTrigger, '/hr/perception/speech_recognizer/set_context' 81

src/tts/animation.py

Source: head-ros-nodes/ros/ros_tts/src/tts/animation.py

Kind Arguments in source order Line
Publisher ros_node, String, speech_event_topic, depth=10 98
Publisher ros_node, String, tts_status_topic, depth=100 102
Publisher ros_node, MakeFaceExpr, 'make_face_expr', depth=10 105
Publisher ros_node, Viseme, viseme_control_topic, depth=10 110
Publisher ros_node, Visemes, visemes_control_topic, depth=10 116
Publisher ros_node, String, tts_stream_topic, depth=10 123
Publisher ros_node, Empty, '/hr/animation/cancel_visemes', depth=1 125