diff --git a/.gitmodules b/.gitmodules
index 1243abf..346279d 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,4 +1,8 @@
-[submodule "external/msgpack-c"]
- path = external/msgpack-c
+[submodule "nao_lola_client/external/msgpack-c"]
+ path = nao_lola_client/external/msgpack-c
+ url = https://github.com/msgpack/msgpack-c.git
+ branch = cpp_master
+[submodule "nao_lola/external/msgpack-c"]
+ path = nao_lola/external/msgpack-c
url = https://github.com/msgpack/msgpack-c.git
branch = cpp_master
diff --git a/external/msgpack-c b/external/msgpack-c
deleted file mode 160000
index be4d971..0000000
--- a/external/msgpack-c
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit be4d971c62798eb59f8455dc77a4529748bcd08f
diff --git a/CHANGELOG.rst b/nao_lola/CHANGELOG.rst
similarity index 100%
rename from CHANGELOG.rst
rename to nao_lola/CHANGELOG.rst
diff --git a/CMakeLists.txt b/nao_lola/CMakeLists.txt
similarity index 100%
rename from CMakeLists.txt
rename to nao_lola/CMakeLists.txt
diff --git a/external/AMENT_IGNORE b/nao_lola/external/AMENT_IGNORE
similarity index 100%
rename from external/AMENT_IGNORE
rename to nao_lola/external/AMENT_IGNORE
diff --git a/nao_lola/external/msgpack-c b/nao_lola/external/msgpack-c
new file mode 160000
index 0000000..8c602e8
--- /dev/null
+++ b/nao_lola/external/msgpack-c
@@ -0,0 +1 @@
+Subproject commit 8c602e8579c7e7d65d6f9c6703c9699db3fb0488
diff --git a/include/nao_lola/command_index_conversion.hpp b/nao_lola/include/nao_lola/command_index_conversion.hpp
similarity index 100%
rename from include/nao_lola/command_index_conversion.hpp
rename to nao_lola/include/nao_lola/command_index_conversion.hpp
diff --git a/include/nao_lola/connection.hpp b/nao_lola/include/nao_lola/connection.hpp
similarity index 100%
rename from include/nao_lola/connection.hpp
rename to nao_lola/include/nao_lola/connection.hpp
diff --git a/include/nao_lola/index_conversion.hpp b/nao_lola/include/nao_lola/index_conversion.hpp
similarity index 100%
rename from include/nao_lola/index_conversion.hpp
rename to nao_lola/include/nao_lola/index_conversion.hpp
diff --git a/include/nao_lola/lola_enums.hpp b/nao_lola/include/nao_lola/lola_enums.hpp
similarity index 100%
rename from include/nao_lola/lola_enums.hpp
rename to nao_lola/include/nao_lola/lola_enums.hpp
diff --git a/include/nao_lola/msgpack_packer.hpp b/nao_lola/include/nao_lola/msgpack_packer.hpp
similarity index 100%
rename from include/nao_lola/msgpack_packer.hpp
rename to nao_lola/include/nao_lola/msgpack_packer.hpp
diff --git a/include/nao_lola/msgpack_parser.hpp b/nao_lola/include/nao_lola/msgpack_parser.hpp
similarity index 100%
rename from include/nao_lola/msgpack_parser.hpp
rename to nao_lola/include/nao_lola/msgpack_parser.hpp
diff --git a/include/nao_lola/nao_lola.hpp b/nao_lola/include/nao_lola/nao_lola.hpp
similarity index 100%
rename from include/nao_lola/nao_lola.hpp
rename to nao_lola/include/nao_lola/nao_lola.hpp
diff --git a/include/nao_lola/sensor_index_conversion.hpp b/nao_lola/include/nao_lola/sensor_index_conversion.hpp
similarity index 100%
rename from include/nao_lola/sensor_index_conversion.hpp
rename to nao_lola/include/nao_lola/sensor_index_conversion.hpp
diff --git a/package.xml b/nao_lola/package.xml
similarity index 77%
rename from package.xml
rename to nao_lola/package.xml
index 5d0c9e6..dfe4534 100644
--- a/package.xml
+++ b/nao_lola/package.xml
@@ -3,7 +3,7 @@
nao_lola
0.3.1
- Packages that allow communicating with the NAO’s Lola middle-ware.
+ Packages that allow communicating with the NAO's Lola middle-ware.
ijnek
Apache License 2.0
@@ -20,5 +20,8 @@
ament_cmake
+
+ Please use nao_lola_client. nao_lola will be removed in K-turtle.
+
diff --git a/src/connection.cpp b/nao_lola/src/connection.cpp
similarity index 100%
rename from src/connection.cpp
rename to nao_lola/src/connection.cpp
diff --git a/src/msgpack_packer.cpp b/nao_lola/src/msgpack_packer.cpp
similarity index 100%
rename from src/msgpack_packer.cpp
rename to nao_lola/src/msgpack_packer.cpp
diff --git a/src/msgpack_parser.cpp b/nao_lola/src/msgpack_parser.cpp
similarity index 100%
rename from src/msgpack_parser.cpp
rename to nao_lola/src/msgpack_parser.cpp
diff --git a/src/nao_lola.cpp b/nao_lola/src/nao_lola.cpp
similarity index 100%
rename from src/nao_lola.cpp
rename to nao_lola/src/nao_lola.cpp
diff --git a/src/nao_lola_node.cpp b/nao_lola/src/nao_lola_node.cpp
similarity index 100%
rename from src/nao_lola_node.cpp
rename to nao_lola/src/nao_lola_node.cpp
diff --git a/test/CMakeLists.txt b/nao_lola/test/CMakeLists.txt
similarity index 100%
rename from test/CMakeLists.txt
rename to nao_lola/test/CMakeLists.txt
diff --git a/test/test_msgpack_packer.cpp b/nao_lola/test/test_msgpack_packer.cpp
similarity index 100%
rename from test/test_msgpack_packer.cpp
rename to nao_lola/test/test_msgpack_packer.cpp
diff --git a/test/test_msgpack_parser.cpp b/nao_lola/test/test_msgpack_parser.cpp
similarity index 100%
rename from test/test_msgpack_parser.cpp
rename to nao_lola/test/test_msgpack_parser.cpp
diff --git a/nao_lola_client/CMakeLists.txt b/nao_lola_client/CMakeLists.txt
new file mode 100644
index 0000000..88de231
--- /dev/null
+++ b/nao_lola_client/CMakeLists.txt
@@ -0,0 +1,78 @@
+cmake_minimum_required(VERSION 3.8)
+project(nao_lola_client)
+
+# Default to C++17
+if(NOT CMAKE_CXX_STANDARD)
+ set(CMAKE_CXX_STANDARD 17)
+endif()
+
+if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
+ add_compile_options(-Wall -Wextra -Wpedantic)
+endif()
+
+include_directories(
+ include
+ external/msgpack-c/include
+)
+
+# find dependencies
+find_package(ament_cmake REQUIRED)
+find_package(rclcpp REQUIRED)
+find_package(nao_lola_sensor_msgs REQUIRED)
+find_package(nao_lola_command_msgs REQUIRED)
+find_package(Boost COMPONENTS system program_options filesystem REQUIRED)
+
+# build msgpack_parser_lib
+add_library(msgpack_parser_lib SHARED
+ src/msgpack_parser.cpp)
+
+ament_target_dependencies(msgpack_parser_lib
+ rclcpp
+ nao_lola_sensor_msgs
+ Boost)
+
+# build msgpack_packer_lib
+add_library(msgpack_packer_lib SHARED
+ src/msgpack_packer.cpp)
+
+ament_target_dependencies(msgpack_packer_lib
+ rclcpp
+ nao_lola_command_msgs
+ Boost)
+
+# build nao_lola_client
+add_executable(nao_lola_client
+ src/nao_lola_client_node.cpp
+ src/nao_lola_client.cpp
+ src/connection.cpp)
+
+target_link_libraries(nao_lola_client
+ msgpack_parser_lib
+ msgpack_packer_lib)
+
+# Install
+install(TARGETS
+ nao_lola_client
+ DESTINATION lib/${PROJECT_NAME})
+
+install(DIRECTORY include/
+ DESTINATION include/
+)
+
+install(
+ TARGETS msgpack_parser_lib msgpack_packer_lib
+ EXPORT export_${PROJECT_NAME}
+ ARCHIVE DESTINATION lib
+ LIBRARY DESTINATION lib
+ RUNTIME DESTINATION bin
+)
+
+if(BUILD_TESTING)
+ find_package(ament_cmake_gtest REQUIRED)
+ add_subdirectory(test)
+
+ find_package(ament_lint_auto REQUIRED)
+ ament_lint_auto_find_test_dependencies()
+endif()
+
+ament_package()
diff --git a/nao_lola_client/external/AMENT_IGNORE b/nao_lola_client/external/AMENT_IGNORE
new file mode 100644
index 0000000..e69de29
diff --git a/nao_lola_client/external/msgpack-c b/nao_lola_client/external/msgpack-c
new file mode 160000
index 0000000..8c602e8
--- /dev/null
+++ b/nao_lola_client/external/msgpack-c
@@ -0,0 +1 @@
+Subproject commit 8c602e8579c7e7d65d6f9c6703c9699db3fb0488
diff --git a/nao_lola_client/include/nao_lola_client/command_index_conversion.hpp b/nao_lola_client/include/nao_lola_client/command_index_conversion.hpp
new file mode 100644
index 0000000..08d0f48
--- /dev/null
+++ b/nao_lola_client/include/nao_lola_client/command_index_conversion.hpp
@@ -0,0 +1,146 @@
+// Copyright 2021 Kenji Brameld
+//
+// 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.
+
+#ifndef NAO_LOLA_CLIENT__COMMAND_INDEX_CONVERSION_HPP_
+#define NAO_LOLA_CLIENT__COMMAND_INDEX_CONVERSION_HPP_
+
+#include