update: launch file added

This commit is contained in:
Björn Ellensohn 2023-04-17 10:50:48 +02:00
parent c2b7ecb0f1
commit 427f6a596d
3 changed files with 33 additions and 2 deletions

View File

@ -12,10 +12,17 @@ find_package(segway_msgs REQUIRED)
ament_python_install_package(${PROJECT_NAME}) ament_python_install_package(${PROJECT_NAME})
# Link libraries
target_link_libraries(rmp220_teleop)
install(PROGRAMS install(PROGRAMS
rmp220_teleop/rmp220_teleop.py rmp220_teleop/rmp220_teleop.py
DESTINATION lib/${PROJECT_NAME}) DESTINATION lib/${PROJECT_NAME})
# Install launch files
install(DIRECTORY launch
DESTINATION share/${PROJECT_NAME}/)
if(BUILD_TESTING) if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED) find_package(ament_lint_auto REQUIRED)
# the following line skips the linter which checks for copyrights # the following line skips the linter which checks for copyrights

24
launch/teleop.launch.py Normal file
View File

@ -0,0 +1,24 @@
<launch>
<!-- Start the segwayrmp SmartCar node -->
<node
pkg="segwayrmp"
type="SmartCar"
name="SmartCar"
output="screen"/>
<!-- Start the joy_teleop node -->
<node
pkg="joy"
type="joy_teleop"
name="joy_teleop"
output="screen"/>
<!-- Start the rmp220_teleop.py node -->
<node
pkg="rmp220_teleop"
type="rmp220_teleop.py"
name="rmp220_teleop"
output="screen"/>
</launch>

View File

@ -2,9 +2,9 @@
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> <?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3"> <package format="3">
<name>rmp220_teleop</name> <name>rmp220_teleop</name>
<version>0.0.0</version> <version>0.0.2</version>
<description>TODO: Package description</description> <description>TODO: Package description</description>
<maintainer email="bjoern.ellensohn@gmail.com">bjorn</maintainer> <maintainer email="bjoern.ellensohn@gmail.com">bjoern</maintainer>
<license>TODO: License declaration</license> <license>TODO: License declaration</license>
<depend>rclpy</depend> <depend>rclpy</depend>