File tree Expand file tree Collapse file tree 2 files changed +33
-2
lines changed Expand file tree Collapse file tree 2 files changed +33
-2
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env python3
2
+
3
+ import os
4
+ import sys
5
+
6
+
7
+ if len (sys .argv ) >= 2 :
8
+ skip_pkgs = set (sys .argv [1 :])
9
+ else :
10
+ skip_pkgs = set ()
11
+
12
+ system_dir = os .getenv ("TUE_SYSTEM_DIR" )
13
+ packages = [f .path for f in os .scandir (os .path .join (system_dir , "src" )) if f .is_dir ()]
14
+
15
+ msg_pkgs = set ()
16
+
17
+ for pkg_path in packages :
18
+ pkg = os .path .split (pkg_path )[- 1 ]
19
+ for msg_type in ["action" , "msg" , "srv" ]:
20
+ if os .path .isdir (os .path .join (pkg_path , msg_type )):
21
+ msg_pkgs .add (pkg )
22
+ break
23
+
24
+ print ("\n " .join (msg_pkgs .difference (skip_pkgs )))
25
+
26
+
27
+
28
+
29
+
Original file line number Diff line number Diff line change @@ -6,11 +6,13 @@ install:
6
6
- source <(wget -O - https://raw.githubusercontent.com/tue-robotics/tue-env/master/installer/bootstrap.bash)
7
7
- git -C ~/.tue checkout feature/ros_deps
8
8
- tue-get install tue-documentation-github --no-ros-deps --doc-depend --branch=fix/docs
9
- - tue-get install ros-python_orocos_kdl # Needs to be installed fully as it needs to be build to generate docs
9
+ - MSG_PKGS=($(./.ci/get_message_packages.py costmap_2d))
10
+ - MSG_TARGETS=(${MSG_PKGS[@]/#/ros-})
11
+ - tue-get install ros-python_orocos_kdl ${MSG_TARGETS[@]} # Needs to be installed fully as it needs to be build to generate docs
10
12
- export ROS_PACKAGE_PATH=""
11
13
12
14
script :
13
- - tue-make python_orocos_kdl # Needs to be build to generate docs
15
+ - tue-make python_orocos_kdl ${MSG_PKGS[@]} # Needs to be build to generate docs
14
16
- source ~/.tue/setup.bash # Source the workspace
15
17
- tue-make-documentation
16
18
You can’t perform that action at this time.
0 commit comments