Avoid segfault when validating a multidof-only trajectory#691
Conversation
|
I'd swap the order of those 2 checks as if there's no joint trajectory passed there is no way to get the warning about multidof trajectory. It may be of personal taste but I'd also revamp this file a bit in order to remove all those |
6cb88e0 to
5406a62
Compare
|
I forgot about this request... You are right about the order of the checks. I swapped them.
There is only one Please have another look. |
Also warn that MultiDOFJointTrajectory validation is not supported Fixes moveit#539
5406a62 to
ed7c293
Compare
|
Another question: shouldn't we just error out when a multidof trajectory arrives? This allows for passing in a bunch of stuff that then gets ignored. |
|
In theory we could error out and tell the user to either submit a patch for working validation or disable validation explicitly. But that would entail that everyone planning with a multi-dof joint has to disable start state validation by hand. This use-case "just worked" before we added validation, so it would break peoples workflow. I believe the warning is enough in this case to tell the user "hey submit a patch or don't complain if something breaks". |
|
Also, this topic is probably beyond the scope of this PR. 👍 |
Also warn that MultiDOFJointTrajectory validation is not supported
Fixes #539
Should be backported to indigo.