Skip to content

Commit 062a37d

Browse files
authored
Fixup main branch (#359)
Signed-off-by: Tyler Weaver <[email protected]>
1 parent 4fc14d6 commit 062a37d

File tree

8 files changed

+46
-22
lines changed

8 files changed

+46
-22
lines changed

.github/upstream.repos

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
repositories:
2+
launch_param_builder:
3+
type: git
4+
url: https://github.com/PickNikRobotics/launch_param_builder
5+
version: main
6+
moveit_task_constructor:
7+
type: git
8+
url: https://github.com/ros-planning/moveit_task_constructor.git
9+
version: ros2
10+
moveit_visual_tools:
11+
type: git
12+
url: https://github.com/ros-planning/moveit_visual_tools
13+
version: ros2
14+
rosparam_shortcuts:
15+
type: git
16+
url: https://github.com/PickNikRobotics/rosparam_shortcuts
17+
version: ros2

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
env:
2626
DOCKER_IMAGE: moveit/moveit2:${{ matrix.env.IMAGE }}
27-
UPSTREAM_WORKSPACE: moveit2_tutorials.repos
27+
UPSTREAM_WORKSPACE: .github/upstream.repos
2828
AFTER_SETUP_UPSTREAM_WORKSPACE: vcs pull $BASEDIR/upstream_ws/src
2929
AFTER_SETUP_UPSTREAM_WORKSPACE_EMBED: set +u && source ~/ws_moveit/install/setup.bash && set - u
3030
TARGET_CMAKE_ARGS: -DCMAKE_BUILD_TYPE=Release
@@ -42,9 +42,9 @@ jobs:
4242
uses: pat-s/[email protected]
4343
with:
4444
path: ${{ env.BASEDIR }}/upstream_ws
45-
key: upstream_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('moveit2_tutorials.repos') }}-${{ github.run_id }}
45+
key: upstream_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('.github/upstream.repos') }}-${{ github.run_id }}
4646
restore-keys: |
47-
upstream_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('moveit2_tutorials.repos') }}
47+
upstream_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('.github/upstream.repos') }}
4848
# The target directory cache doesn't include the source directory because
4949
# that comes from the checkout. See "prepare target_ws for cache" task below
5050
- name: cache target_ws

.github/workflows/format.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99
push:
1010
branches:
1111
- main
12-
- foxy
1312

1413
jobs:
1514
pre-commit:
@@ -18,6 +17,6 @@ jobs:
1817
steps:
1918
- uses: actions/checkout@v2
2019
- uses: actions/setup-python@v2
21-
- name: Install clang-format-10
22-
run: sudo apt-get install clang-format-10
20+
- name: Install clang-format-12
21+
run: sudo apt-get install clang-format-12
2322
- uses: pre-commit/[email protected]

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ repos:
3737
- id: clang-format
3838
name: clang-format
3939
description: Format files with ClangFormat.
40-
entry: clang-format-10
40+
entry: clang-format-12
4141
language: system
4242
files: \.(c|cc|cxx|cpp|frag|glsl|h|hpp|hxx|ih|ispc|ipp|java|js|m|proto|vert)$
4343
args: ['-fallback-style=none', '-i']

doc/examples/move_group_interface/src/move_group_interface_tutorial.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ int main(int argc, char** argv)
143143
// to actually move the robot.
144144
moveit::planning_interface::MoveGroupInterface::Plan my_plan;
145145

146-
bool success = (move_group.plan(my_plan) == moveit::planning_interface::MoveItErrorCode::SUCCESS);
146+
bool success = (move_group.plan(my_plan) == moveit::core::MoveItErrorCode::SUCCESS);
147147

148148
RCLCPP_INFO(LOGGER, "Visualizing plan 1 (pose goal) %s", success ? "" : "FAILED");
149149

@@ -196,7 +196,7 @@ int main(int argc, char** argv)
196196
move_group.setMaxVelocityScalingFactor(0.05);
197197
move_group.setMaxAccelerationScalingFactor(0.05);
198198

199-
success = (move_group.plan(my_plan) == moveit::planning_interface::MoveItErrorCode::SUCCESS);
199+
success = (move_group.plan(my_plan) == moveit::core::MoveItErrorCode::SUCCESS);
200200
RCLCPP_INFO(LOGGER, "Visualizing plan 2 (joint space goal) %s", success ? "" : "FAILED");
201201

202202
// Visualize the plan in RViz:
@@ -263,7 +263,7 @@ int main(int argc, char** argv)
263263
// Let's increase the planning time from the default 5 seconds to be sure the planner has enough time to succeed.
264264
move_group.setPlanningTime(10.0);
265265

266-
success = (move_group.plan(my_plan) == moveit::planning_interface::MoveItErrorCode::SUCCESS);
266+
success = (move_group.plan(my_plan) == moveit::core::MoveItErrorCode::SUCCESS);
267267
RCLCPP_INFO(LOGGER, "Visualizing plan 3 (constraints) %s", success ? "" : "FAILED");
268268

269269
// Visualize the plan in RViz:
@@ -341,7 +341,7 @@ int main(int argc, char** argv)
341341
another_pose.position.z = 0.59;
342342
move_group.setPoseTarget(another_pose);
343343

344-
success = (move_group.plan(my_plan) == moveit::planning_interface::MoveItErrorCode::SUCCESS);
344+
success = (move_group.plan(my_plan) == moveit::core::MoveItErrorCode::SUCCESS);
345345
RCLCPP_INFO(LOGGER, "Visualizing plan 5 (with no obstacles) %s", success ? "" : "FAILED");
346346

347347
visual_tools.deleteAllMarkers();
@@ -396,7 +396,7 @@ int main(int argc, char** argv)
396396
visual_tools.prompt("Press 'next' in the RvizVisualToolsGui window to once the collision object appears in RViz");
397397

398398
// Now, when we plan a trajectory it will avoid the obstacle.
399-
success = (move_group.plan(my_plan) == moveit::planning_interface::MoveItErrorCode::SUCCESS);
399+
success = (move_group.plan(my_plan) == moveit::core::MoveItErrorCode::SUCCESS);
400400
RCLCPP_INFO(LOGGER, "Visualizing plan 6 (pose goal move around cuboid) %s", success ? "" : "FAILED");
401401
visual_tools.publishText(text_pose, "Obstacle_Goal", rvt::WHITE, rvt::XLARGE);
402402
visual_tools.publishTrajectoryLine(my_plan.trajectory_, joint_model_group);
@@ -452,7 +452,7 @@ int main(int argc, char** argv)
452452

453453
// Replan, but now with the object in hand.
454454
move_group.setStartStateToCurrentState();
455-
success = (move_group.plan(my_plan) == moveit::planning_interface::MoveItErrorCode::SUCCESS);
455+
success = (move_group.plan(my_plan) == moveit::core::MoveItErrorCode::SUCCESS);
456456
RCLCPP_INFO(LOGGER, "Visualizing plan 7 (move around cuboid with cylinder) %s", success ? "" : "FAILED");
457457
visual_tools.publishTrajectoryLine(my_plan.trajectory_, joint_model_group);
458458
visual_tools.trigger();

doc/tutorials/getting_started/getting_started.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ Move into your colcon workspace and pull the MoveIt 2 tutorials source: ::
4646

4747
cd ~/ws_moveit2/src
4848
git clone https://github.com/ros-planning/moveit2_tutorials -b main
49-
git clone https://github.com/ros-planning/moveit2 -b main
5049
vcs import < moveit2_tutorials/moveit2_tutorials.repos
5150

5251
Build your Colcon Workspace

moveit2_tutorials.repos

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,29 @@
11
repositories:
2-
moveit_resources:
3-
type: git
4-
url: https://github.com/ros-planning/moveit_resources
5-
version: ros2
6-
moveit_visual_tools:
7-
type: git
8-
url: https://github.com/ros-planning/moveit_visual_tools
9-
version: ros2
102
launch_param_builder:
113
type: git
124
url: https://github.com/PickNikRobotics/launch_param_builder
135
version: main
6+
moveit2:
7+
type: git
8+
url: https://github.com/ros-planning/moveit2
9+
version: main
10+
moveit_resources:
11+
type: git
12+
url: https://github.com/ros-planning/moveit_resources
13+
version: ros2
1414
moveit_task_constructor:
1515
type: git
1616
url: https://github.com/ros-planning/moveit_task_constructor.git
1717
version: ros2
18+
moveit_visual_tools:
19+
type: git
20+
url: https://github.com/ros-planning/moveit_visual_tools
21+
version: ros2
1822
rosparam_shortcuts:
1923
type: git
2024
url: https://github.com/PickNikRobotics/rosparam_shortcuts
2125
version: ros2
26+
srdfdom:
27+
type: git
28+
url: [email protected]:ros-planning/srdfdom.git
29+
version: ros2

package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
<depend>tf2_eigen</depend>
3535
<depend>tf2_geometry_msgs</depend>
3636
<depend>tf2_ros</depend>
37+
<depend>moveit_task_constructor_core</depend>
3738

3839
<build_depend>eigen</build_depend>
3940
<build_depend>geometric_shapes</build_depend>

0 commit comments

Comments
 (0)