File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,9 @@ void GeneratePose::compute() {
7070 if (upstream_solutions_.empty ())
7171 return ;
7272
73- planning_scene::PlanningScenePtr scene = upstream_solutions_.pop ()->end ()->scene ()->diff ();
73+ const SolutionBase& s = *upstream_solutions_.pop ();
74+ planning_scene::PlanningSceneConstPtr scene = s.end ()->scene ()->diff ();
75+
7476 geometry_msgs::PoseStamped target_pose = properties ().get <geometry_msgs::PoseStamped>(" pose" );
7577 if (target_pose.header .frame_id .empty ())
7678 target_pose.header .frame_id = scene->getPlanningFrame ();
@@ -80,6 +82,7 @@ void GeneratePose::compute() {
8082 }
8183
8284 InterfaceState state (scene);
85+ forwardProperties (*s.end (), state); // forward registered properties from received solution
8386 state.properties ().set (" target_pose" , target_pose);
8487
8588 SubTrajectory trajectory;
You can’t perform that action at this time.
0 commit comments