Skip to content

run full demo as a test - #254

Merged
rhaschke merged 4 commits into
moveit:masterfrom
v4hn:pr-demo-test
May 27, 2021
Merged

rhaschke merged 4 commits into
moveit:masterfrom
v4hn:pr-demo-test

Conversation

@v4hn

@v4hn v4hn commented Apr 14, 2021

Copy link
Copy Markdown
Contributor

Running that would have helped multiple times before.

Also simplify/streamline code in various places.

Comment thread demo/test/pickplace_demo.test Resolved
@v4hn
v4hn force-pushed the pr-demo-test branch 2 times, most recently from 044f393 to 122bf90 Compare April 14, 2021 13:52
@v4hn

v4hn commented Apr 14, 2021

Copy link
Copy Markdown
Contributor Author

CI fails because the recent moveit_resources 0.7.2 release is not synced yet. Any idea when the next sync is scheduled?

@v4hn
v4hn force-pushed the pr-demo-test branch 3 times, most recently from 2324fec to 483e3fe Compare May 3, 2021 12:00

@rhaschke rhaschke left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, the demo should be run as a test as well. Maybe add expectations on the number of found solutions as in the other tests in core?

However, I get crashes locally for both pick_place_demo:

terminate called after throwing an instance of 'std::runtime_error'
  what():  The robot model of the planning pipeline isn't the same as the task's robot model -- use Task::setRobotModel for setting the robot model when using custom planning pipeline

and pick_place_test:

#0 0x7f8f541f27ed in ros::Publisher::~Publisher() (/opt/ros/noetic/lib/libroscpp.so+0xdd7ed)
#1 0x7f8f552dc03d in planning_pipeline::PlanningPipeline::~PlanningPipeline() /vol/sandbox/ros/src/moveit/moveit_ros/planning/planning_pipeline/include/moveit/planning_pipeline/planning_pipeline.h:55
...
#9 0x7f8f552e0adb in moveit::task_constructor::solvers::PipelinePlanner::~PipelinePlanner() /homes/rhaschke/src/ros/src/moveit/mtc/core/include/moveit/task_constructor/solvers/pipeline_planner.

However, GHA is happy (at least with the test)?!? I don't understand what'ts wrong with my local workspace. It was built from scratch! Unfortunately, I don't have time to investigate further.

Comment thread demo/test/pickplace_demo.test Resolved
@rhaschke rhaschke mentioned this pull request May 19, 2021
@v4hn

v4hn commented May 25, 2021

Copy link
Copy Markdown
Contributor Author

Do you want to fix your local system before getting this merged?
As CI succeeds and it works for me I would otherwise expect we can merge it now.
Thanks for the OBJECT lib cleanup. I use features ahead of time again...

@rhaschke

Copy link
Copy Markdown
Contributor

Did you try to run the pick+place demo as well?

v4hn and others added 4 commits May 25, 2021 21:13
Running that would have helped multiple times before.

Also simplify/streamline code in various places.
pick_place_demo ~ pick_place_test
Otherwise, dependency issues arise:
make[2]: *** No rule to make target 'CMakeFiles/pick_place_task.dir/src/pick_place_task.cpp.o', needed by 'devel/lib/moveit_task_constructor_demo/pick_place_test'.  Stop.

and linking OBJECT libs via target_link_libraries is available since cmake 3.12 only.
@v4hn

v4hn commented May 26, 2021

Copy link
Copy Markdown
Contributor Author
❯ catkin run_tests --no-deps moveit_task_constructor_demo
[...]
❯ catkin_test_results build/moveit_task_constructor_demo/
Summary: 3 tests, 0 errors, 0 failures, 0 skipped

I believe this is what you mean? Locally, I run this on my Lunar-Linux machine though.

Maybe add expectations on the number of found solutions

I prefer to leave out checks on the number of solutions for more complex tasks as they are also affected by compile options/computational resources/... The test checks for at least one solution which is sufficient for me.

@codecov

codecov Bot commented May 26, 2021

Copy link
Copy Markdown

Codecov Report

Merging #254 (2e674b5) into master (67fe4fa) will increase coverage by 16.53%.
The diff coverage is 97.44%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master     #254       +/-   ##
===========================================
+ Coverage   35.33%   51.86%   +16.53%     
===========================================
  Files          97      101        +4     
  Lines        6247     6565      +318     
===========================================
+ Hits         2207     3404     +1197     
+ Misses       4040     3161      -879     
Impacted Files Coverage Δ
...ude/moveit_task_constructor_demo/pick_place_task.h 100.00% <ø> (ø)
demo/src/pick_place_task.cpp 97.50% <97.44%> (ø)
...apabilities/src/execute_task_solution_capability.h 100.00% <0.00%> (ø)
...abilities/src/execute_task_solution_capability.cpp 82.90% <0.00%> (ø)
core/src/container.cpp 69.84% <0.00%> (+0.75%) ⬆️
core/src/stages/connect.cpp 91.51% <0.00%> (+0.95%) ⬆️
core/include/moveit/task_constructor/storage.h 100.00% <0.00%> (+1.70%) ⬆️
core/include/moveit/task_constructor/cost_queue.h 100.00% <0.00%> (+2.39%) ⬆️
... and 31 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 67fe4fa...2e674b5. Read the comment docs.

@rhaschke

Copy link
Copy Markdown
Contributor
❯ catkin run_tests --no-deps moveit_task_constructor_demo
[...]
❯ catkin_test_results build/moveit_task_constructor_demo/
Summary: 3 tests, 0 errors, 0 failures, 0 skipped

I believe this is what you mean? Locally, I run this on my Lunar-Linux machine though.

No. I meant (as stated in the actual tutorial - sorry for the confusion):

roslaunch moveit_task_constructor_demo demo.launch
roslaunch moveit_task_constructor_demo pickplace.launch

@rhaschke rhaschke left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just tested again locally and today it works. No idea what was the problem the other day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants