summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2387e0941d8e2aafebc23827c2580ef4492cf239 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
pkgdesc="A metapackage for all Franka Emika ROS packages"
pkgbase="ros-noetic-franka-ros"
pkgname=(
    'ros-noetic-franka-control'
    'ros-noetic-franka-example-controllers'
    'ros-noetic-franka-gazebo'
    'ros-noetic-franka-gripper'
    'ros-noetic-franka-hw'
    'ros-noetic-franka-msgs'
    'ros-noetic-franka-ros'
    'ros-noetic-franka-visualization'
)
pkgver="0.9.0"
pkgrel=2
arch=('i686' 'x86_64' 'aarch64' 'armv7h' 'armv6h')
url="http://wiki.ros.org/franka_ros"
license=('Apache 2.0')

makedepends=(
    ros-build-tools
    cmake
    ros-noetic-catkin
    ros-noetic-message-generation
    eigen
    ros-noetic-message-runtime
    ros-noetic-gazebo-dev
)

source=("franka_ros-$pkgver.tar.gz::https://github.com/frankaemika/franka_ros/archive/$pkgver.tar.gz")
sha256sums=("e1858ed46bcc56bb336fd0e1bd1f9de6870a4313d130430bbefdef3ab4d0c991")


build() {
	# Use ROS environment variables
  	source /usr/share/ros-build-tools/clear-ros-env.sh
  	[ -f /opt/ros/noetic/setup.bash ] && source /opt/ros/noetic/setup.bash

    catkin_make_isolated \
        --directory ${srcdir} \
        --source ${srcdir}/franka_ros-${pkgver} \
        --install-space /opt/ros/noetic \
        --cmake-args \
        -DCATKIN_BUILD_BINARY_PACKAGE=ON \
        -DPYTHON_EXECUTABLE=/usr/bin/python \
        -DSETUPTOOLS_DEB_LAYOUT=OFF
}


package_ros-noetic-franka-ros() {
    depends=(
        ros-noetic-franka-control
        ros-noetic-franka-description
        ros-noetic-franka-example-controllers
        ros-noetic-franka-gripper
        ros-noetic-franka-hw
        ros-noetic-franka-msgs
        ros-noetic-franka-visualization
        ros-noetic-franka-gazebo
    )

    cd "${srcdir}/build_isolated/franka_ros"
    make DESTDIR="${pkgdir}/" install
}


package_ros-noetic-franka-control() {
    pkgdesc="franka_control provides a hardware node to control a Franka Emika research robot"
    url='https://wiki.ros.org/franka_control'
    depends=(
        ros-noetic-libfranka
        ros-noetic-controller-interface
        ros-noetic-controller-manager
        ros-noetic-franka-hw
        ros-noetic-franka-msgs
        ros-noetic-geometry-msgs
        ros-noetic-pluginlib
        ros-noetic-realtime-tools
        ros-noetic-roscpp
        ros-noetic-sensor-msgs
        ros-noetic-tf2-msgs
        ros-noetic-tf
        ros-noetic-std-srvs
        ros-noetic-franka-description
        ros-noetic-franka-gripper
        ros-noetic-joint-state-publisher
        ros-noetic-joint-trajectory-controller
        ros-noetic-robot-state-publisher
    )
    cd "${srcdir}/build_isolated/franka_control"
    make DESTDIR="${pkgdir}/" install
}


package_ros-noetic-franka-example-controllers() {
    pkgdesc="franka_example_controllers provides example code for controlling Franka Emika research robots with ros_control"
    url='https://wiki.ros.org/franka_example_controllers'
    depends=(
        ros-noetic-controller-interface
        ros-noetic-dynamic-reconfigure
        ros-noetic-eigen-conversions
        ros-noetic-franka-hw
        ros-noetic-geometry-msgs
        ros-noetic-hardware-interface
        ros-noetic-tf
        ros-noetic-tf-conversions
        ros-noetic-libfranka
        ros-noetic-pluginlib
        ros-noetic-realtime-tools
        ros-noetic-roscpp
        ros-noetic-franka-control
        ros-noetic-franka-description
        ros-noetic-message-runtime
        ros-noetic-panda-moveit-config
        ros-noetic-moveit-commander
        ros-noetic-rospy
    )
    cd "${srcdir}/build_isolated/franka_example_controllers"
    make DESTDIR="${pkgdir}/" install
}

package_ros-noetic-franka-gazebo() {
    pkgdesc="This package offers the FrankaHWSim Class to simulate a Franka Robot in Gazebo"
    url='https://wiki.ros.org/franka_gazebo'
    depends=(
        ros-noetic-gazebo-ros
        ros-noetic-gazebo-ros-control
        ros-noetic-roscpp
        ros-noetic-std-msgs
        ros-noetic-control-msgs
        ros-noetic-control-toolbox
        ros-noetic-controller-manager
        ros-noetic-controller-interface
        ros-noetic-pluginlib
        ros-noetic-kdl-parser
        ros-noetic-hardware-interface
        ros-noetic-transmission-interface
        ros-noetic-joint-limits-interface
        ros-noetic-eigen-conversions
        ros-noetic-franka-hw
        ros-noetic-franka-msgs
        ros-noetic-franka-gripper
        ros-noetic-franka-example-controllers
        ros-noetic-urdf
        ros-noetic-angles
        ros-noetic-rospy
        ros-noetic-roslaunch
    )
    cd "${srcdir}/build_isolated/franka_gazebo"
    make DESTDIR="${pkgdir}/" install
}

package_ros-noetic-franka-gripper() {
    pkgdesc="This package implements the franka gripper of type Franka Hand for the use in ros"
    url='https://wiki.ros.org/franka_gripper'
    depends=(
        ros-noetic-roscpp
        ros-noetic-message-generation
        ros-noetic-libfranka
        ros-noetic-control-msgs
        ros-noetic-actionlib
        ros-noetic-sensor-msgs
        ros-noetic-xmlrpcpp
        ros-noetic-actionlib-msgs
        ros-noetic-message-runtime
    )
    cd "${srcdir}/build_isolated/franka_gripper"
    make DESTDIR="${pkgdir}/" install
}

package_ros-noetic-franka-hw() {
    pkgdesc="franka_hw provides hardware interfaces for using Franka Emika research robots with ros_control"
    url='https://wiki.ros.org/franka_hw'
    depends=(
        ros-noetic-actionlib-msgs
        ros-noetic-actionlib
        ros-noetic-controller-interface
        ros-noetic-combined-robot-hw
        ros-noetic-hardware-interface
        ros-noetic-joint-limits-interface
        ros-noetic-libfranka
        ros-noetic-roscpp
        ros-noetic-std-srvs
        ros-noetic-urdf
        ros-noetic-pluginlib
        ros-noetic-franka-msgs
    )
    cd "${srcdir}/build_isolated/franka_hw"
    make DESTDIR="${pkgdir}/" install
}

package_ros-noetic-franka-msgs() {
    pkgdesc="franka_msgs provides messages specific to Franka Emika research robots"
    url='https://wiki.ros.org/franka_msgs'
    depends=(
        ros-noetic-std-msgs
        ros-noetic-actionlib-msgs
        ros-noetic-message-runtime
    )
    cd "${srcdir}/build_isolated/franka_msgs"
    make DESTDIR="${pkgdir}/" install
}

package_ros-noetic-franka-visualization() {
    pkgdesc="This package contains visualization tools for Franka Emika."
    url='https://wiki.ros.org/franka_visualization'
    depends=(
        ros-noetic-sensor-msgs
        ros-noetic-roscpp
        ros-noetic-libfranka
        ros-noetic-franka-description
        ros-noetic-xacro
    )
    cd "${srcdir}/build_isolated/franka_visualization"
    make DESTDIR="${pkgdir}/" install
}