diff --git a/CMakeLists.txt b/CMakeLists.txt index 5d19ba9..a90cb43 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -95,6 +95,11 @@ install(FILES README.md LICENSE.md DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} ) +# Install configuration files +install(DIRECTORY config + DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} + FILES_MATCHING PATTERN "*.yaml" +) ################################################################################ # Test ################################################################################ \ No newline at end of file diff --git a/config/twist_mux.yaml b/config/twist_mux.yaml index ad98704..67b64d2 100644 --- a/config/twist_mux.yaml +++ b/config/twist_mux.yaml @@ -1,19 +1,28 @@ -twist_mux: - ros__parameters: - topics: - # common: - # topic : cmd_vel_common - # timeout : 0.5 - # priority: 0 - navigation: - topic : cmd_vel - timeout : 0.5 - priority: 10 - # tracker: - # topic : cmd_vel_tracker - # timeout : 0.5 - # priority: 20 - joystick: - topic : cmd_vel_joy - timeout : 0.5 - priority: 50 \ No newline at end of file +# Input topics handled/muxed. +# For each topic: +# - name : name identifier to select the topic +# - topic : input topic of geometry_msgs::Twist type +# - timeout : timeout in seconds to start discarding old messages, and use 0.0 speed instead +# - priority: priority in the range [0, 255]; the higher the more priority over other topics + +topics: +- + name : navigation + topic : nav_vel + timeout : 0.5 + priority: 100 +- + name : joystick + topic : joy_vel + timeout : 0.5 + priority: 90 +- + name : keyboard + topic : key_vel + timeout : 0.5 + priority: 90 +- + name : tablet + topic : tab_vel + timeout : 0.5 + priority: 90 \ No newline at end of file diff --git a/launch/twist_mux.launch b/launch/twist_mux.launch new file mode 100644 index 0000000..99da9c3 --- /dev/null +++ b/launch/twist_mux.launch @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +