@@ -92,11 +92,12 @@ def setup_with_config(self, config: ConfigSchema):
92
92
self ._setup_localization (self ._config .localization )
93
93
94
94
def _setup_localization (self , localization_config : LocalizationConfig ):
95
- self ._logger .info ("Setting up localization" )
95
+ self ._logger .info ("Setting up localization subscribers " )
96
96
self ._localization_manager = self ._fclient .get_localization_manager (
97
97
localization_config .formant_stream
98
98
)
99
99
# Setup Odom
100
+ self ._logger .info ("Setting up odometry" )
100
101
odom_topic = localization_config .odometry_subscriber_ros2_topic
101
102
odom_type = self ._topic_type_provider .get_class_for_topic (odom_topic , Odometry )
102
103
odom_sub = self ._node .create_subscription (
@@ -106,11 +107,12 @@ def _setup_localization(self, localization_config: LocalizationConfig):
106
107
qos_profile = qos_profile_system_default ,
107
108
)
108
109
self ._subscriptions .append (odom_sub )
109
- self ._logger .info ("Odometry: %s" % str ( odom_sub ) )
110
+ self ._logger .info ("Set up odometry" )
110
111
111
112
# Setup Map
112
113
map_topic = localization_config .map_subscriber_ros2_topic
113
114
if map_topic :
115
+ self ._logger .info ("Setting up map" )
114
116
map_type = self ._topic_type_provider .get_class_for_topic (
115
117
map_topic , OccupancyGrid
116
118
)
@@ -121,11 +123,12 @@ def _setup_localization(self, localization_config: LocalizationConfig):
121
123
qos_profile = qos_profile_system_default ,
122
124
)
123
125
self ._subscriptions .append (map_sub )
124
- self ._logger .info ("Map: %s" % str ( map_sub ) )
126
+ self ._logger .info ("Set up map" )
125
127
126
128
# Setup Path
127
129
path_topic = localization_config .path_subscriber_ros2_topic
128
130
if path_topic :
131
+ self ._logger .info ("Setting up path" )
129
132
path_type = self ._topic_type_provider .get_class_for_topic (path_topic , Path )
130
133
path_sub = self ._node .create_subscription (
131
134
path_type ,
@@ -134,11 +137,12 @@ def _setup_localization(self, localization_config: LocalizationConfig):
134
137
qos_profile = qos_profile_system_default ,
135
138
)
136
139
self ._subscriptions .append (path_sub )
137
- self ._logger .info ("Path: %s" % str ( path_sub ) )
140
+ self ._logger .info ("Set up path" )
138
141
139
142
# Setup Pointcloud
140
143
pointcloud_configs = localization_config .point_cloud_subscriber_ros2_topics
141
144
if pointcloud_configs :
145
+ self ._logger .info ("Setting up point cloud" )
142
146
for pointcloud_config in pointcloud_configs :
143
147
pointcloud_type = self ._topic_type_provider .get_class_for_topic (
144
148
pointcloud_config .topic , Path
@@ -152,9 +156,9 @@ def _setup_localization(self, localization_config: LocalizationConfig):
152
156
qos_profile = qos_profile_system_default ,
153
157
)
154
158
self ._subscriptions .append (pointcloud_sub )
155
- self ._logger .info ("Point cloud: %s" % str ( pointcloud_sub ) )
159
+ self ._logger .info ("Set up point cloud" )
156
160
157
- self ._logger .info ("Set up localization" )
161
+ self ._logger .info ("Set up localization subscribers " )
158
162
159
163
def _odom_callback (self , msg ):
160
164
with self ._config_lock :
0 commit comments