performances: 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/runner.py
Source: head-ros-nodes/ros/performances/scripts/runner.py
| Kind | Arguments in source order | Line |
|---|---|---|
| Publisher | ros.node, String, _join_name(self.namespace, 'running_performance'), depth=1 |
121 |
| Publisher | ros.node, Event, _join_name(self.namespace, 'events'), depth=1 |
122 |
| Subscription | ros.node, Event, _join_name(self.namespace, 'events'), self.runner_event_callback, depth=10 |
141 |
| Service server | Trigger, _join_name(self.namespace, 'reload_properties'), self.reload_properties_callback |
126 |
| Service server | perf_srv.SetProperties, _join_name(self.namespace, 'set_properties'), self.set_properties_callback |
127 |
| Service server | perf_srv.Load, _join_name(self.namespace, 'load'), self.load_callback |
128 |
| Service server | perf_srv.LoadPerformance, _join_name(self.namespace, 'load_performance'), self.load_performance_callback |
129 |
| Service server | Trigger, _join_name(self.namespace, 'unload'), self.unload_callback |
130 |
| Service server | perf_srv.Run, _join_name(self.namespace, 'run'), self.run_callback |
131 |
| Service server | perf_srv.RunByName, _join_name(self.namespace, 'run_by_name'), self.run_by_name_callback |
132 |
| Service server | perf_srv.RunByName, _join_name(self.namespace, 'run_full_performance'), self.run_full_performance_callback |
133 |
| Service server | perf_srv.Resume, _join_name(self.namespace, 'resume'), self.resume_callback |
134 |
| Service server | perf_srv.Pause, _join_name(self.namespace, 'pause'), self.pause_callback |
135 |
| Service server | perf_srv.Stop, _join_name(self.namespace, 'stop'), self.stop_callback |
136 |
| Service server | perf_srv.Current, _join_name(self.namespace, 'current'), self.current_callback |
137 |
| Service server | Trigger, _join_name(self.namespace, 'is_performance_loaded'), self.check_is_performance_loaded |
138 |
| Publisher | ros_node, Target, '/hr/animation/set_face_target', depth=1 |
757 |
| Publisher | ros_node, Target, '/hr/animation/set_gaze_target', depth=1 |
758 |
| Publisher | ros_node, Float32, '/hr/animation/set_head_tilt', depth=1 |
759 |
| Publisher | ros_node, SetExpression, '/hr/animation/set_expression', depth=3 |
760 |
| Publisher | ros_node, SetAnimation, '/hr/animation/set_animation', depth=3 |
761 |
| Publisher | ros_node, SetAnimation, '/hr/animation/set_arm_animation', depth=3 |
762 |
| Publisher | ros_node, SomaState, '/hr/animation/set_soma_state', depth=2 |
767 |
| Publisher | ros_node, TTS, '/hr/control/speech/say', depth=1 |
768 |
| Publisher | ros_node, String, '/hr/control/speech/tts_control', depth=1 |
769 |
| Publisher | ros_node, Empty, '/hr/animation/cancel_visemes', depth=1 |
770 |
| Publisher | ros_node, String, '/hr/interaction/arf', depth=1 |
771 |
scripts/speech_motion_controller.py
Source: head-ros-nodes/ros/performances/scripts/speech_motion_controller.py
| Kind | Arguments in source order | Line |
|---|---|---|
| Subscription | self.node, String, '/hr/behavior/current_state', self.update_state, depth=10 |
71 |
| Subscription | self.node, String, '/hr/control/speech/data', self.get_tts_data, depth=10 |
74 |
| Subscription | self.node, String, '/hr/control/start_animated_performance', self.start_animation_performance, depth=10 |
77 |
| Service client | self.node, LoadPerformance, '/hr/control/performances/speech_animation/load_performance' |
84 |
| Service client | self.node, Run, '/hr/control/performances/speech_animation/run' |
89 |
| Publisher | self.node, String, '/hr/control/speech/tts_control', depth=2 |
94 |
| Service client | self.node, TTSData, '/hr/control/speech/data' |
97 |
| Service client | self.node, TTSData, '/hr/control/speech/data' |
217 |
msg/Event.msg
Source: head-ros-nodes/ros/performances/msg/Event.msg
string event
float64 time
string performance_id
bool running
bool paused
int32 active_timeline_index
string active_timeline_id
srv/Current.srv
Source: head-ros-nodes/ros/performances/srv/Current.srv
---
string performance
float32 current_time
bool running
bool paused
int32 active_timeline_index
string active_timeline_id
srv/Load.srv
Source: head-ros-nodes/ros/performances/srv/Load.srv
string id
---
bool success
string performance
srv/LoadPerformance.srv
Source: head-ros-nodes/ros/performances/srv/LoadPerformance.srv
string performance
---
bool success
srv/Pause.srv
Source: head-ros-nodes/ros/performances/srv/Pause.srv
---
bool success
float64 time
srv/Resume.srv
Source: head-ros-nodes/ros/performances/srv/Resume.srv
---
bool success
float64 time
srv/Run.srv
Source: head-ros-nodes/ros/performances/srv/Run.srv
float64 start_time
---
bool success
srv/RunByName.srv
Source: head-ros-nodes/ros/performances/srv/RunByName.srv
string id
---
bool success
srv/SetProperties.srv
Source: head-ros-nodes/ros/performances/srv/SetProperties.srv
string id
string properties
---
bool success
srv/Stop.srv
Source: head-ros-nodes/ros/performances/srv/Stop.srv
---
bool success
float64 time