mirror of
https://github.com/moveit/moveit_task_constructor.git
synced 2025-11-04 14:49:57 +08:00
don't add NULL to InterfaceState
This commit is contained in:
parent
af67324224
commit
850fb575d0
@ -22,10 +22,13 @@ MOVEIT_CLASS_FORWARD(InterfaceState);
|
|||||||
|
|
||||||
struct InterfaceState {
|
struct InterfaceState {
|
||||||
InterfaceState(planning_scene::PlanningSceneConstPtr ps, SubTrajectory* previous, SubTrajectory* next)
|
InterfaceState(planning_scene::PlanningSceneConstPtr ps, SubTrajectory* previous, SubTrajectory* next)
|
||||||
: state(ps),
|
: state(ps)
|
||||||
previous_trajectory(1, previous),
|
{
|
||||||
next_trajectory(1, next)
|
if( previous )
|
||||||
{}
|
previous_trajectory.push_back(previous);
|
||||||
|
if( next )
|
||||||
|
next_trajectory.push_back(next);
|
||||||
|
}
|
||||||
|
|
||||||
std::vector<SubTrajectory*> previous_trajectory;
|
std::vector<SubTrajectory*> previous_trajectory;
|
||||||
std::vector<SubTrajectory*> next_trajectory;
|
std::vector<SubTrajectory*> next_trajectory;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user