Skip to content

Commit 5361f73

Browse files
committed
Make it suitable for packaging
1 parent 933c9b7 commit 5361f73

File tree

11 files changed

+24
-7
lines changed

11 files changed

+24
-7
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ find_package(catkin REQUIRED COMPONENTS
1818
## Uncomment this if the package has a setup.py. This macro ensures
1919
## modules and global scripts declared therein get installed
2020
## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html
21-
# catkin_python_setup()
21+
catkin_python_setup()
2222

2323
################################################
2424
## Declare ROS messages, services and actions ##
@@ -134,6 +134,11 @@ include_directories(
134134
# scripts/my_python_script
135135
# DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
136136
# )
137+
install(PROGRAMS
138+
scripts/arms_alive.py
139+
scripts/head_ctrl.py
140+
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
141+
)
137142

138143
## Mark executables and/or libraries for installation
139144
# install(TARGETS basic_head_api basic_head_api_node

package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
<run_depend>rospy</run_depend>
4848
<run_depend>std_msgs</run_depend>
4949
<run_depend>dynamic_reconfigure</run_depend>
50+
<run_depend>ros_pololu</run_depend>
5051

5152
<!-- The export tag contains other, unspecified, tags -->
5253
<export>
File renamed without changes.

src/head_ctrl.py renamed to scripts/head_ctrl.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33
import yaml
44
import rospy
55
from collections import OrderedDict
6-
import FaceExpr
7-
from animation import Animation
8-
from playback import Playback
96
from ros_pololu.msg import MotorCommand
10-
from basic_head_api.srv import *
11-
from basic_head_api.msg import *
127
from pau2motors.msg import pau
138
from geometry_msgs.msg import Quaternion
149
from pi_face_tracker.msg import Faces
15-
import Quat
1610
from std_msgs.msg import String
1711
from std_msgs.msg import Float64
1812
import time
1913

14+
from basic_head_api import FaceExpr
15+
from basic_head_api.animation import Animation
16+
from basic_head_api.playback import Playback
17+
from basic_head_api.srv import *
18+
from basic_head_api.msg import *
19+
from basic_head_api import Quat
2020

2121
def to_dict(list, key):
2222
result = {}

setup.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# DO NOT USE
2+
# python setup.py install
3+
4+
from distutils.core import setup
5+
6+
setup(
7+
version='0.1.0',
8+
name='basic_head_api',
9+
packages=['basic_head_api'],
10+
package_dir={'': 'src'}
11+
)
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/basic_head_api/__init__.py

Whitespace-only changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)