Skip to content

Commit b800403

Browse files
committed
tools/nxstyle: Whitelist lifecycle_msgs GetState/State identifiers.
Phase 8 of the micro-ROS on NuttX integration adds GetState service server and client examples under apps/examples/microros_{srv,cli}. The rosidl token-pasting macros generate identifiers such as lifecycle_msgs__srv__GetState_Request lifecycle_msgs__srv__GetState_Response lifecycle_msgs__msg__State__PRIMARY_STATE_ACTIVE ROSIDL_GET_SRV_TYPE_SUPPORT(lifecycle_msgs, srv, GetState) rosidl_runtime_c__String__assign which contain CamelCase tokens ("GetState", "State", "String") that cannot be renamed without breaking the ROS C client API. Add them, along with the lifecycle_msgs package name and the rosidl_runtime_c prefix, to the existing rosidl whitelist introduced for Int32 / std_msgs identifiers. Signed-off-by: Arjav Patel <arjav1528@gmail.com>
1 parent 47e3f50 commit b800403

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tools/nxstyle.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,10 @@ static const char *g_white_prefix[] =
240240
"nav_msgs", /* nav_msgs__msg__Odometry, ... */
241241
"builtin_interfaces", /* builtin_interfaces__msg__Time, ... */
242242
"rcl_interfaces", /* rcl_interfaces__msg__Log, ... */
243+
"lifecycle_msgs", /* lifecycle_msgs__srv__GetState, ... */
244+
"GetState", /* lifecycle_msgs__srv__GetState_{Request,Response} */
245+
"State", /* lifecycle_msgs__msg__State */
246+
"rosidl_runtime_c", /* rosidl_runtime_c__String__assign, ... */
243247
"Int8", /* ROSIDL_GET_MSG_TYPE_SUPPORT(_, _, Int8) */
244248
"Int16",
245249
"Int32",

0 commit comments

Comments
 (0)