Skip to content

Commit e2f0881

Browse files
author
Taehun Lim
authored
Merge pull request #22 from ROBOTIS-GIT/develop
add launch file for automatic_parking node
2 parents 1926b50 + c9d1079 commit e2f0881

File tree

5 files changed

+28
-12
lines changed

5 files changed

+28
-12
lines changed

turtlebot3_automatic_parking/CMakeLists.txt

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,38 +18,37 @@ find_package(catkin REQUIRED COMPONENTS
1818
################################################################################
1919
# Setup for python modules and scripts
2020
################################################################################
21-
22-
################################################################################
23-
# Declare ROS messages, services and actions
24-
################################################################################
25-
26-
################################################################################
27-
# Declare ROS dynamic reconfigure parameters
28-
################################################################################
21+
catkin_python_setup()
2922

3023
################################################################################
3124
# Declare catkin specific configuration to be passed to dependent projects
3225
################################################################################
3326
catkin_package(
34-
CATKIN_DEPENDS rospy std_msgs sensor_msgs geometry_msgs nav_msgs
27+
CATKIN_DEPENDS
28+
rospy
29+
std_msgs
30+
sensor_msgs
31+
geometry_msgs
32+
nav_msgs
3533
)
3634

3735
################################################################################
3836
# Build
3937
################################################################################
4038
include_directories(
39+
include
4140
${catkin_INCLUDE_DIRS}
4241
)
4342

4443
################################################################################
4544
# Install
4645
################################################################################
4746
catkin_install_python(PROGRAMS
48-
scripts/automatic_parking.py
49-
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
47+
nodes/automatic_parking
48+
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
5049
)
5150

52-
install(DIRECTORY rviz
51+
install(DIRECTORY launch rviz
5352
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
5453
)
5554

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<launch>
2+
<node pkg="turtlebot3_automatic_parking" type="automatic_parking" name="automatic_parking" output="screen">
3+
</node>
4+
</launch>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD
2+
## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html
3+
4+
from distutils.core import setup
5+
from catkin_pkg.python_setup import generate_distutils_setup
6+
7+
# fetch values from package.xml
8+
setup_args = generate_distutils_setup(
9+
packages=['turtlebot3_automatic_parking'],
10+
package_dir={'': 'src'}
11+
)
12+
13+
setup(**setup_args)

turtlebot3_automatic_parking/src/turtlebot3_automatic_parking/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)