v4hn
e1216aa8ab
MoveTo supports attached objects&subframes for ik frame
2021-11-10 13:14:04 +01:00
v4hn
aee76fee5e
add move MoveTo tests
...
(partially disabled because broken)
2021-11-10 13:12:21 +01:00
v4hn
86fe752d43
InterpolationPlanner: implement simple IK-based solver for pose targets
2021-11-10 13:12:21 +01:00
v4hn
ef86799f27
add some tests for MoveTo
2021-11-10 13:12:21 +01:00
v4hn
dfe746b9bb
FixedState: add optional scene in constructor
2021-11-10 13:12:21 +01:00
v4hn
e60a9793f1
fix test helper
...
never unload the plugin loader before the plugins (IK plugins here).
We don't have unrelated loaders in gtest executables, so the static should be fine.
2021-11-10 13:12:21 +01:00
Robert Haschke
d6f68f9254
Simplify code
...
We know that trajectory at least comprises the start state.
Thus, we don't need the sanity checks.
2021-11-10 12:11:39 +01:00
Robert Haschke
71fab0fbce
Simplify allowCollisions(object, JMG)
2021-11-10 12:11:39 +01:00
Robert Haschke
aa54de0447
Gracefully handle execution_type ( #307 )
...
In moveit_resources 0.8.1 the arg execution_type was renamed to fake_execution_type.
To support both, Melodic and Noetic versions of moveit_resources, provide both name variants.
Additionally, disable roslaunch's checking via pass_all_args="true".
2021-11-10 10:00:13 +01:00
Robert Haschke
9ca8f5a1e3
Improve CI
...
- Allow downloading of pre-commit + clang-tidy fixes
- Use clang compiler for clang-tidy job
- Adapt to improved lcov-action
2021-10-22 23:28:43 +02:00
Michael Görner
7ec874572c
move to tf2_eigen everywhere ( #301 )
2021-10-18 23:34:29 +02:00
v4hn
55e30e26ce
split off pruning tests
...
yes, most pruning happen along children of a serial container,
but children for many tests comprise a lot of other containers as well.
- migrated pruning tests from Connect to ConnectMockup (as the concrete implementation
is not relevant for them)
- added missing header to stage_mockups.h
2021-10-04 23:06:13 +02:00
v4hn
9428c83ba5
consolidate test base
2021-10-04 23:06:13 +02:00
Michael Görner
8b2ac94609
define core tests through macros ( #299 )
...
Maybe it makes sense to define this in an exported config,
but then why bother until someone needs it.
2021-10-04 22:27:34 +02:00
Michael Görner
e89c68ced0
Merge pull request #294 from v4hn/pr-fallbacks-split-tests
...
new set of fallback tests
2021-09-20 23:13:10 +02:00
Robert Haschke
9da3a8055e
Optimize setStatus(): only escalate to parent interface at boundaries of a partial solution
...
In all other cases internalToExternalMap().find(s) will fail anyway.
2021-09-20 23:07:00 +02:00
v4hn
47d20984ae
simplify test specification
...
before anyone starts copying from here...
2021-09-20 23:07:00 +02:00
v4hn
81ec8bb3aa
demos: improve CMakeLists
...
- build pick_place_task as proper library as people (e.g. moveit_benchmark_suite) reuse it
2021-09-20 23:07:00 +02:00
v4hn
35560d897d
DISABLED -> PRUNED
...
This makes the semantics much clearer as states can only be disabled by pruning.
2021-09-20 23:07:00 +02:00
v4hn
d143dd7076
simplify exception handling
...
This could have been done already back when `runCompute` was introduced.
Wrapping the calls in try/catch comes from the previous implementation directly
calling `compute()`.
2021-09-20 23:07:00 +02:00
v4hn
1e10aaccfd
Connecting: add another ROS_DEBUG hint
...
These can facilitate debugging a lot for little overhead.
2021-09-20 23:07:00 +02:00
v4hn
40b00c61d2
DISABLED_FAILED -> FAILED
...
Failed states are *not* disabled, they just failed connecting (for now).
2021-09-20 23:07:00 +02:00
v4hn
3b9f6ee519
add todo
2021-09-20 23:07:00 +02:00
v4hn
dbfa7e2b8a
disable currently failing tests
...
They will be enabled when the corresponding functionality is merged.
2021-09-20 15:11:13 +02:00
Robert Haschke
35dc037365
Add more fallback tests
2021-09-20 14:52:15 +02:00
Robert Haschke
4e0f295d1e
Replace std::list<double>() with PredefinedCosts()
2021-09-20 14:50:13 +02:00
Robert Haschke
61496fecd3
Simplify tests by introducing EXPECT_COSTS()
2021-09-20 14:50:03 +02:00
v4hn
61399d6d23
fixup & extend fallback tests
2021-09-20 14:49:01 +02:00
v4hn
a582fe8297
add another non-trivial test for a reliable fallbacks container
2021-09-20 14:42:55 +02:00
v4hn
b61e045f2c
add a test for generator-fallbacks
2021-09-20 14:42:48 +02:00
v4hn
f75a498f55
fallbacks: add a test to use fallbacks *per state*
...
The current implementation will not fall back for each state
independently, but is meant to stay with the first child producing
a solution. For propagators, this is problematic though
as the picked child depends on the (arbitrary) first received state.
Instead, fallbacks should pass each state to each child separately
until one produces a solution for it (or all are exhausted).
2021-09-20 14:42:42 +02:00
v4hn
2bee9d5f66
rearrange fallback test fixtures
2021-09-20 14:42:35 +02:00
v4hn
5d9efc3b2b
fallback tests: use fixture
2021-09-20 14:42:26 +02:00
v4hn
001eadaf3d
move fallback to separate test
2021-09-20 14:42:20 +02:00
v4hn
14380c5552
add another test to cover both cases for failing children
2021-09-20 14:42:14 +02:00
v4hn
3244ac92b1
disable ConnectStageInsideFallbacks
...
This should work, but will require more changes.
2021-09-20 14:42:08 +02:00
Robert Haschke
c6cdd1a970
Fix test Fallback.ActiveChildReset
2021-09-20 14:41:51 +02:00
j-kuehn
f6eadb3fc4
add unit tests for Fallbacks container
2021-09-20 14:41:42 +02:00
Robert Haschke
d0ab3c3703
Improve readability of internal-external bimap using tags ( #293 )
2021-09-16 13:52:34 +02:00
Robert Haschke
639481726e
Update main scene node's pose on updates of robot's model frame ( #292 )
2021-09-15 15:09:43 +02:00
Michael Görner
4e3ff57926
switch CI ccov job to Debug build ( #290 )
...
To provide accurate coverage information.
It was originally RelWithDebInfo because MoveIt uses it
and Travis's timeout would kick in with the old setup.
According to Robert the timeout should not be a problem anymore with
the GHA ci setup. Actually I don't think the timeout was ever a problem for MTC,
but the config was just copied.
2021-09-06 23:05:29 +02:00
v4hn
06b3df9c30
split assert
...
so that it becomes obvious which condition triggered it.
2021-09-01 14:53:52 +02:00
v4hn
fa8d21741c
print debug message in runCompute
...
so that it prints from all containers
2021-09-01 14:53:14 +02:00
v4hn
f51f6eb982
address interface changes for object poses in MoveIt
...
Also include a check for the new object pose field in `Connecting::compatible()`.
2021-08-23 00:33:37 +02:00
v4hn
0273aec83e
remove dirty MOVEIT_MASTER-check
...
... in favor of checking version numbers.
Checking for one header was used for multiple independent things.
In theory we could do exact feature testing instead of using the next release number,
but in practice nobody cares about the individual commits between older releases.
2021-08-23 00:06:42 +02:00
v4hn
6b4eae9d51
ComputeIK: spawn failures with correct states
...
Otherwise all failures look correct in the introspection.
That was a stupid oversight at some point.
2021-08-21 22:15:21 +02:00
v4hn
ff86217f9a
do not modify scene in isTargetPoseColliding
...
Especially, do not create a custom scene at all.
The method only affects a RobotState.
Fixes https://github.com/ros-planning/moveit_task_constructor/issues/209
2021-08-21 22:15:12 +02:00
v4hn
74d33c4ec0
Merge different mockup implementations
...
Co-authored-by: Jascha Kühn <57101356+j-kuehn@users.noreply.github.com>
2021-07-07 14:25:42 +02:00
v4hn
4b1f240c21
test_container: correctly initialize robot_model
...
The local mocks do not care, but leaving a dangling nullptr
leads to segfaults with refactoring/new tests. :-)
2021-07-07 14:25:42 +02:00
v4hn
062c127b86
better API comments for StageCallback
2021-06-15 09:49:05 +02:00