Skip to content

Commit

Permalink
Add action2idl script (#654)
Browse files Browse the repository at this point in the history
Signed-off-by: Greek64 <greek64.mail@gmail.com>

Co-authored-by: Shane Loretz <sloretz@osrfoundation.org>
  • Loading branch information
Greek64 and sloretz committed Jul 11, 2022
1 parent aa8b0ab commit 0250ae8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions rosidl_adapter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ install(
install(PROGRAMS
scripts/msg2idl.py
scripts/srv2idl.py
scripts/action2idl.py
DESTINATION lib/${PROJECT_NAME})
22 changes: 22 additions & 0 deletions rosidl_adapter/scripts/action2idl.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env python3

# Copyright 2022 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from rosidl_adapter.action import convert_action_to_idl
from rosidl_adapter.cli import convert_files_to_idl


if __name__ == '__main__':
convert_files_to_idl('.action', convert_action_to_idl)

0 comments on commit 0250ae8

Please sign in to comment.