You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RobotState::getRigidlyConnectedParentLinkModel() does not recognise subframes #3089
Call RobotState::setFromIK() with the subframe name as the tip
Expected behavior
The call should succeed. This is because with #3077, the chain of calls is now setFromIK() -> getRigidlyConnectedParentLinkModel() -> getFrameInfo(). The latter function appears to include a search for subframes.
[move_group-2] [ERROR] [1731596998.921984677] [moveit_robot_state.robot_state]: Unable to find link for frame 'tb_9_3-f686742d-b737-43b8-a712-5318e3f05abc/disc_centre'
[move_group-2] [ERROR] [1731596998.921987769] [moveit_robot_state.robot_state]: The following Pose Frame does not exist: tb_9_3-f686742d-b737-43b8-a712-5318e3f05abc/disc_centre
I've run the tests locally in Debug mode a la #3102, however they still pass. This suggests to me that getRigidlyConnectedParentLinkModel is working as intended, and I should probably look at the code we're using to attach the objects & subframes (which differs from the tests in that we do it through the PlanningSceneInterface rather than a RobotModel instance)
@sea-bass I'd like to test this again using 2.5.6 as a base to rule out source and binary mixing issues. It seems like the apt repository is still hosting 2.5.5. Do you know how often this gets updated?
No worries either way, as I can build from source from the tag 👍
If you want to use latest release packages, you need to use the testing repository. These are manually synced to the production repo on an irregular (usually monthly) basis.
Added some prints to the subframe lookup code in RobotState::getFrameInfo():
// Check if an AttachedBody has a subframe with name frame_id
for (const auto& body : attached_body_map_)
{
RCLCPP_WARN(LOGGER, "Checking for frame id: %s", frame_id.c_str());
RCLCPP_WARN(LOGGER, "Checking if frame is subframe of body %s", body.first.c_str());
const Eigen::Isometry3d& transform = body.second->getGlobalSubframeTransform(frame_id, &frame_found);
if (frame_found)
{
RCLCPP_WARN(LOGGER, "Frame %s found as subframe of body %s", frame_id.c_str(), body.first.c_str());
robot_link = body.second->getAttachedLink();
assert(checkLinkTransforms());
return transform;
}
RCLCPP_WARN(LOGGER, "Frame %s not found as subframe of body %s", frame_id.c_str(), body.first.c_str());
}
Interestingly, it seems to find the subframe (so not an issue with the AttachedBody::getGlobalSubframeTransform()):
[move_group-2] [WARN] [1732114093.982901211] [moveit_robot_state.robot_state]: Checking for frame id: tb_4_3-d536e569-fa2b-4bab-9c53-4d73e8842fa0/length_calibration
[move_group-2] [WARN] [1732114093.982906557] [moveit_robot_state.robot_state]: Checking if frame is subframe of body tb_4_3-d536e569-fa2b-4bab-9c53-4d73e8842fa0
[move_group-2] [WARN] [1732114093.982908251] [moveit_robot_state.robot_state]: Frame tb_4_3-d536e569-fa2b-4bab-9c53-4d73e8842fa0/length_calibration found as subframe of body tb_4_3-d536e569-fa2b-4bab-9c53-4d73e8842fa0
[move_group-2] [WARN] [1732114093.982922273] [moveit_robot_state.robot_state]: Checking for frame id: tb_4_3-d536e569-fa2b-4bab-9c53-4d73e8842fa0/length_calibration
[move_group-2] [ERROR] [1732114093.982924485] [moveit_robot_state.robot_state]: Unable to find link for frame 'tb_4_3-d536e569-fa2b-4bab-9c53-4d73e8842fa0/length_calibration'
[move_group-2] [ERROR] [1732114093.982926863] [moveit_robot_state.robot_state]: The following Pose Frame does not exist: tb_4_3-d536e569-fa2b-4bab-9c53-4d73e8842fa0/length_calibration
I'm also unsure about the print after finding the frame... getFrameInfo() shouldn't keep iterating after this point
[move_group-2] [WARN] [1732116228.154714346] [moveit_robot_state.robot_state]: Checking for frame id (top): tb_4_3-d536e569-fa2b-4bab-9c53-4d73e8842fa0/length_calibration
We print the frame found flag shortly before returning in getFrameInfo() and shortly after returning to the caller (getRigidlyConnectedParentLinkModel()). Only the first print is seen, so some time within the return we appear to be calling getFrameInfo() again with the same frame (and crashing shortly afterwards).
Ah actually, we print out the link name first in getRigidlyConnectedParentModel(). I suppose it could be null? This would suggest that either the attached body that contains the subframe is returning a null parent link, or some kind of race condition is occurring and we're getting undefined behaviour.
Given the rogue print, and the fact that link is a mutable pointer, I'm suspicious of the latter.
Actually, I could be incorrect regarding 5. It might be the case that the nullptr, false are associated with the second getFrameInfo() call. Though this would raise another question: where are the corresponding prints for the first call?
Ok. Is there already code available (e.g. a test), adding an object + subframe and then calling getRigidlyConnectedParentLinkModel(), which you are using? Providing a code link (or code snippet) would save me some time to search for it.
There's tests I added in pilz which call getRigidlyConnectedParentModel() via setFromIK()here, however these are all passing. Unfortunately our stack is quite dense (I think the mode of failure is seen through calling pilz's planMotionSequence() service with a subframe planning frame, which reaches getRigidlyConnectedParentModel() via a series of method calls).
I did take a brief look over the moveit and pilz code to check callback group types (thinking that two of the same services that query the robot state might be running concurrently, but it appeared that only the pilz planMotionSequence() action uses REENTRANT, and the service uses the node's default (which I believe is MUTUALLY_EXCLUSIVE). The rest of moveit also appears to use node defaults or explicitly MUTUALLY_EXCLUSIVE (as do we in all of our nodes)
It looks like there is a call to getFrameTransform which succeeds, followed by a call to getGlobalSubframeTransform which fails. The call to getGlobalSubframeTransform doesn't seem to have any entries in attached_body_map_ in getFrameInfo.
backtrace:
Thread 21 "move_group" received signal SIGABRT, Aborted.
[Switching to Thread 0x77f123400640 (LWP 660)]
0x000077f14886c9fc in pthread_kill () from /lib/x86_64-linux-gnu/libc.so.6
(gdb)
(gdb) bt
#0 0x000077f14886c9fc in pthread_kill () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x000077f148818476 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x000077f1487fe7f3 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#3 0x000077f148ac1b9e in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#4 0x000077f148acd20c in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#5 0x000077f148acd277 in std::terminate() ()
from /lib/x86_64-linux-gnu/libstdc++.so.6
#6 0x000077f148acd4d8 in __cxa_throw ()
from /lib/x86_64-linux-gnu/libstdc++.so.6
#7 0x000077f14861d8a8 in moveit::core::RobotState::getRigidlyConnectedParentLinkModel (this=<optimized out>,
frame="stylus_D3L50-2960fa52-8527-412d-8376-be31b1871ada/length_calibration") at /usr/include/c++/11/ext/new_allocator.h:89
#8 0x000077f1486461b7 in moveit::core::RobotState::setFromIK(moveit::core::JointModelGroup const*, std::vector<Eigen::Transform<double, 3, 1, 0>, Eigen::aligned_allocator<Eigen::Transform<double, 3, 1, 0> > > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::vector<std::vector<double, std::allocator<double> >, std::allocator<std::vector<double, std::allocator<double> > > > const&, double, std::function<bool (moveit::core::RobotState*, moveit::core::JointModelGroup const*, double const*)> const&, kinematics::KinematicsQueryOptions const&, std::function<double (geometry_msgs::msg::Pose_<std::allocator<void> > const&, moveit::core:--Type <RET> for more, q to quit, c to continue without paging--
:RobotState const&, moveit::core::JointModelGroup const*, std::vector<double, std::allocator<double> > const&)> const&) (this=<optimized out>,
jmg=0x64bc8d5b6bb0, poses_in=std::vector of length 1, capacity 1 = {...},
tips_in=std::vector of length 1, capacity 1 = {...},
consistency_limit_sets=..., timeout=0, constraint=..., options=...,
cost_function=...)
at /root/workspace/src/moveit2/moveit_core/robot_state/src/robot_state.cpp:1688
#9 0x000077f148647e64 in moveit::core::RobotState::setFromIK(moveit::core::JointModelGroup const*, Eigen::Transform<double, 3, 1, 0> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::vector<double, std::allocator<double> > const&, double, std::function<bool (moveit::core::RobotState*, moveit::core::JointModelGroup const*, double const*)> const&, kinematics::KinematicsQueryOptions const&, std::function<double (geometry_msgs::msg::Pose_<std::allocator<void> > const&, moveit::core::RobotState const&, moveit::core::JointModelGroup const*, std::vector<double, std::allocator<double> > const&)> const&) (this=0x77f1233f8ab0, jmg=0x64bc8d5b6bb0, pose_in=...,
tip_in=..., consistency_limits_in=std::vector of length 0, capacity 0,
timeout=0, constraint=..., options=..., cost_function=...)
at /root/workspace/src/moveit2/moveit_core/robot_state/src/robot_state.cpp:1568
#10 0x000077f148648b70 in moveit::core::RobotState::setFromIK(moveit::core::JointModelGroup const*, Eigen::Transform<double, 3, 1, 0> const&, std::__cxx11::basi--Type <RET> for more, q to quit, c to continue without paging--
c_string<char, std::char_traits<char>, std::allocator<char> > const&, double, std::function<bool (moveit::core::RobotState*, moveit::core::JointModelGroup const*, double const*)> const&, kinematics::KinematicsQueryOptions const&, std::function<double (geometry_msgs::msg::Pose_<std::allocator<void> > const&,re::RobotState const&, moveit::core::JointModelGroup const*, std::vector<double, std::allocator<double> > const&)> const&) (this=0x77f1233f8ab0,
jmg=0x64bc8d5b6bb0, pose_in=...,
tip_in="stylus_D3L50-2960fa52-8527-412d-8376-be31b1871ada/length_calibration", timeout=<optimized out>, constraint=..., options=..., cost_function=...)
at /root/workspace/src/moveit2/moveit_core/robot_state/src/robot_state.cpp:1509
#11 0x000077f1434f9719 in pilz_industrial_motion_planner::computePoseIK(std::shared_ptr<planning_scene::PlanningScene const> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&,nsform<double, 3, 1, 0> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > ocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, double> > > const&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char:al--Type <RET> for more, q to quit, c to continue without paging--
locator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, double> > >&, bool, double) ()
from /opt/ros/humble/lib/libtrajectory_generation_common.so
#12 0x000077f1434ffada in pilz_industrial_motion_planner::generateJointTrajectory(std::shared_ptr<planning_scene::PlanningScene const> const&, pilz_industrial_motion_planner::JointLimitsContainer const&, KDL::Trajectory const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > ::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__c_string<char, std::char_traits<char>, std::allocator<char> > const, double> > > const&, double const&, trajectory_msgs::msg::JointTrajectory_<std::allocator<void> >&, moveit_msgs::msg::MoveItErrorCodes_<std::allocator<void> >&, bool) ()
from /opt/ros/humble/lib/libtrajectory_generation_common.so
#13 0x000077f1434e538a in pilz_industrial_motion_planner::TrajectoryGeneratorLIN::plan(std::shared_ptr<planning_scene::PlanningScene const> const&, moveit_msgs::msg::MotionPlanRequest_<std::allocator<void> > const&, pilz_industrial_motion_planner::TrajectoryGenerator::MotionPlanInfo const&, double const&, tsgs::msg::JointTrajectory_<std::allocator<void> >&) ()
from /opt/ros/humble/lib/libplanning_context_loader_lin.so
#14 0x000077f14350437f in pilz_industrial_motion_planner::TrajectoryGenerator::generate(std::shared_ptr<planning_scene::PlanningScene const> const&, moveit_msgs--Type <RET> for more, q to quit, c to continue without paging--
::msg::MotionPlanRequest_<std::allocator<void> > const&, planning_interface::MotionPlanResponse&, double) ()
from /opt/ros/humble/lib/libtrajectory_generation_common.so
#15 0x000077f147fc5faf in planning_request_adapter::(anonymous namespace)::callPlannerInterfaceSolve (res=..., req=..., planning_scene=..., planner=...)
at /root/workspace/src/moveit2/moveit_core/planning_request_adapter/src/planning_request_adapter.cpp:55
#16 operator() (res=..., req=..., scene=..., __closure=<optimized out>)
at /root/workspace/src/moveit2/moveit_core/planning_request_adapter/src/planning_request_adapter.cpp:135
#17 std::__invoke_impl<bool, planning_request_adapter::PlanningRequestAdapterChain::adaptAndPlan(const PlannerManagerPtr&, const PlanningSceneConstPtr&, const MotionPlanRequest&, planning_interface::MotionPlanResponse&, std::vector<long unsigned int>&) const::<lambda(const PlanningSceneConstPtr&, const Motist&, planning_interface::MotionPlanResponse&)>&, const std::shared_ptr<const planning_scene::PlanningScene>&, const moveit_msgs::msg::MotionPlanRequest_<std::allocator<void> >&, planning_interface::MotionPlanResponse&> (__f=...)
at /usr/include/c++/11/bits/invoke.h:61
#18 std::__invoke_r<bool, planning_request_adapter::PlanningRequestAdapterChain::adaptAndPlan(const PlannerManagerPtr&, const PlanningSceneConstPtr&, const MotionPlanRequest&, planning_interface::MotionPlanResponse&, std::vector<long unsigned int>&) const::<lambda(const PlanningSceneConstPtr&, const MotionP, planning_interface::MotionPlanResponse&)>&, const std::shared_ptr<const plannin--Type <RET> for more, q to quit, c to continue without paging--
g_scene::PlanningScene>&, const moveit_msgs::msg::MotionPlanRequest_<std::allocator<void> >&, planning_interface::MotionPlanResponse&> (__fn=...)
at /usr/include/c++/11/bits/invoke.h:114
#19 std::_Function_handler<bool(const std::shared_ptr<const planning_scene::PlanningScene>&, const moveit_msgs::msg::MotionPlanRequest_<std::allocator<void> >&, planning_interface::MotionPlanResponse&), planning_request_adapter::PlanningRequestAdapterChain::adaptAndPlan(const PlannerManagerPtr&, const PlannstPtr&, const MotionPlanRequest&, planning_interface::MotionPlanResponse&, std::vector<long unsigned int>&) const::<lambda(const PlanningSceneConstPtr&, const MotionPlanRequest&, planning_interface::MotionPlanResponse&)> >::_M_invoke(const std::_Any_data &, const std::shared_ptr<planning_scene::PlanningScen const moveit_msgs::msg::MotionPlanRequest_<std::allocator<void> > &, planning_interface::MotionPlanResponse &) (__functor=..., __args#0=..., __args#1=...,
__args#2=...) at /usr/include/c++/11/bits/std_function.h:290
#20 0x000077f1434ad238 in ?? ()
from /opt/ros/humble/lib/libmoveit_default_planning_request_adapter_plugins.so
#21 0x000077f147fc593a in planning_request_adapter::(anonymous namespace)::callAdapter (adapter=..., planner=...,
planning_scene=std::shared_ptr<const planning_scene::PlanningScene> (use count 5, weak count 1) = {...}, req=..., res=...,
added_path_index=std::vector of length 0, capacity 0)
at /root/workspace/src/moveit2/moveit_core/planning_request_adapter/src/plan--Type <RET> for more, q to quit, c to continue without paging--
ning_request_adapter.cpp:67
#22 0x000077f147fc64e2 in std::function<bool (std::shared_ptr<planning_scene::PlanningScene const> const&, moveit_msgs::msg::MotionPlanRequest_<std::allocator<void> > const&, planning_interface::MotionPlanResponse&)>::operator()(std::shared_ptr<planning_scene::PlanningScene const> const&, moveit_msgs::msg::equest_<std::allocator<void> > const&, planning_interface::MotionPlanResponse&) const (__args#2=..., __args#1=...,
__args#0=std::shared_ptr<const planning_scene::PlanningScene> (use count 5, weak count 1) = {...}, this=0x77f1233fc250)
at /usr/include/c++/11/bits/std_function.h:590
#23 planning_request_adapter::PlanningRequestAdapterChain::adaptAndPlan (
this=<optimized out>, planner=...,
planning_scene=std::shared_ptr<const planning_scene::PlanningScene> (use cou
added_path_index=std::vector of length 0, capacity 0)
at /root/workspace/src/moveit2/moveit_core/planning_request_adapter/src/plan
#24 0x000077f1486c99c9 in planning_pipeline::PlanningPipeline::generatePlan(std:
from /opt/ros/humble/lib/libmoveit_planning_pipeline.so.2.5.6
#25 0x000077f1486cc000 in planning_pipeline::PlanningPipeline::generatePlan(std:
:shared_ptr<planning_scene::PlanningScene const> const&, moveit_msgs::msg::Motio
#26 0x000077f14178dbc9 in move_group::MoveGroupMoveAction::executeMoveCallbackPl
from /opt/ros/humble/lib/libmoveit_move_group_default_capabilities.so
#27 0x000077f141793ae8 in move_group::MoveGroupMoveAction::executeMoveCallback(s
from /opt/ros/humble/lib/libmoveit_move_group_default_capabilities.so
#28 0x000077f14179ec18 in ?? ()
from /opt/ros/humble/lib/libmoveit_move_group_default_capabilities.so
#29 0x000077f148087247 in rclcpp_action::ServerBase::execute_goal_request_receiv
#30 0x000077f148dad11f in rclcpp::Executor::execute_any_executable(rclcpp::AnyEx
#31 0x000077f148db434a in rclcpp::executors::MultiThreadedExecutor::run(unsigned
#32 0x000077f148afb253 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#33 0x000077f14886aac3 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#34 0x000077f1488fba04 in clone () from /lib/x86_64-linux-gnu/libc.so.6
(gdb)
Yeah, the robot state used to call setFromIK in pilz_industrial_motion_planner::computePoseIK has no attached bodies. This is feeling awfully familiar from the ROS1 work we did a few months ago. I'll have a look at the differences between ROS1 and ROS2 and see if I can find the missing PR.
Okay, I'm a bit confused. I've made a PR to your PR branch #3120
Or there's #3119 which I just closed, which is the same PR but directly to the humble branch.
I wasn't sure why the humble branch had conflicts; it looks like the last change to the relevant file was a year ago, long before any of the changes in moveit/moveit1#3592
Activity
TSNoble commentedon Nov 16, 2024
I've run the tests locally in Debug mode a la #3102, however they still pass. This suggests to me that
getRigidlyConnectedParentLinkModelis working as intended, and I should probably look at the code we're using to attach the objects & subframes (which differs from the tests in that we do it through thePlanningSceneInterfacerather than aRobotModelinstance)riv-tnoble commentedon Nov 19, 2024
@sea-bass I'd like to test this again using 2.5.6 as a base to rule out source and binary mixing issues. It seems like the apt repository is still hosting 2.5.5. Do you know how often this gets updated?
No worries either way, as I can build from source from the tag 👍
rhaschke commentedon Nov 19, 2024
If you want to use latest release packages, you need to use the testing repository. These are manually synced to the production repo on an irregular (usually monthly) basis.
riv-tnoble commentedon Nov 20, 2024
Added some prints to the subframe lookup code in
RobotState::getFrameInfo():Interestingly, it seems to find the subframe (so not an issue with the AttachedBody::getGlobalSubframeTransform()):
I'm also unsure about the print after finding the frame...
getFrameInfo()shouldn't keep iterating after this pointriv-tnoble commentedon Nov 20, 2024
Extra prints, extra info (and errors):
riv-tnoble commentedon Nov 20, 2024
I'm still very suspicious of this print:
We print the frame found flag shortly before returning in
getFrameInfo()and shortly after returning to the caller (getRigidlyConnectedParentLinkModel()). Only the first print is seen, so some time within the return we appear to be callinggetFrameInfo()again with the same frame (and crashing shortly afterwards).This feels very race condition-y
riv-tnoble commentedon Nov 20, 2024
Ah actually, we print out the link name first in
getRigidlyConnectedParentModel(). I suppose it could be null? This would suggest that either the attached body that contains the subframe is returning a null parent link, or some kind of race condition is occurring and we're getting undefined behaviour.Given the rogue print, and the fact that link is a mutable pointer, I'm suspicious of the latter.
riv-tnoble commentedon Nov 20, 2024
More prints:
And a nullptr check when we fetch the parent link of the attached body that has the subframe, after found.
riv-tnoble commentedon Nov 20, 2024
In summary, the order of operations is:
getRigidlyConnectedParentLinkModel()callsgetFrameInfo() with a subframegetFrameInfo()finds the subframe on an attached bodygetFrameInfo())getFrameInfo()returns back togetRigidlyConnectedParentLinkModel()getRigidlyConnectedParentLinkModel()side shows they have changed tonullptrand falsegetFrameInfo()with the same frameriv-tnoble commentedon Nov 20, 2024
Actually, I could be incorrect regarding 5. It might be the case that the
nullptr,falseare associated with the secondgetFrameInfo()call. Though this would raise another question: where are the corresponding prints for the first call?rhaschke commentedon Nov 21, 2024
Can you provide a minimal code snippet? Then I can have a look at this.
You are using Humble 2.5.6 (c2b0e3d) + #3077, right?
TSNoble commentedon Nov 21, 2024
@rhaschke
Thanks, and apologies for any incoherence in my previous comments 😅
I'm off work today, but I believe @rr-mark might be looking into the issue as well.
We are now using 2.5.6 (which contains #3077). The only changes have been prints within the
RobotStatemethodsrhaschke commentedon Nov 21, 2024
Ok. Is there already code available (e.g. a test), adding an object + subframe and then calling getRigidlyConnectedParentLinkModel(), which you are using? Providing a code link (or code snippet) would save me some time to search for it.
TSNoble commentedon Nov 21, 2024
There's tests I added in pilz which call
getRigidlyConnectedParentModel()viasetFromIK()here, however these are all passing. Unfortunately our stack is quite dense (I think the mode of failure is seen through calling pilz'splanMotionSequence()service with a subframe planning frame, which reachesgetRigidlyConnectedParentModel()via a series of method calls).I did take a brief look over the moveit and pilz code to check callback group types (thinking that two of the same services that query the robot state might be running concurrently, but it appeared that only the pilz
planMotionSequence()action uses REENTRANT, and the service uses the node's default (which I believe is MUTUALLY_EXCLUSIVE). The rest of moveit also appears to use node defaults or explicitly MUTUALLY_EXCLUSIVE (as do we in all of our nodes)2 remaining items
riv-mjohnson commentedon Nov 21, 2024
It looks like there is a call to
getFrameTransformwhich succeeds, followed by a call togetGlobalSubframeTransformwhich fails. The call togetGlobalSubframeTransformdoesn't seem to have any entries inattached_body_map_ingetFrameInfo.backtrace:
riv-mjohnson commentedon Nov 21, 2024
Yeah, the robot state used to call
setFromIKinpilz_industrial_motion_planner::computePoseIKhas no attached bodies. This is feeling awfully familiar from the ROS1 work we did a few months ago. I'll have a look at the differences between ROS1 and ROS2 and see if I can find the missing PR.riv-mjohnson commentedon Nov 21, 2024
Oh, I bet it's the passing of collision objects as diffs through the move group interface. I'll investigate that now.
riv-mjohnson commentedon Nov 21, 2024
Yeah, it's moveit/moveit1#3592. I'll port it now.
riv-mjohnson commentedon Nov 21, 2024
Wait, no, I'm wrong, the version of moveit2 I was looking at was out of date. #3592 is already ported. I'll keep digging.
riv-mjohnson commentedon Nov 21, 2024
Okay, it looks like
mainhas #3592, but the 2.5.6 release does not.riv-mjohnson commentedon Nov 21, 2024
Yeah, #3041 ports moveit/moveit1#3592, but was never back-ported to humble.
sea-bass commentedon Nov 21, 2024
Nice! Just kicked off the backport and it has conflicts. Would you have time to poke at that?
#3118
riv-mjohnson commentedon Nov 21, 2024
Ooh, you just beat me to it. I'll fix your PR rather than trying to sort out mine.
riv-mjohnson commentedon Nov 21, 2024
Okay, I'm a bit confused. I've made a PR to your PR branch #3120
Or there's #3119 which I just closed, which is the same PR but directly to the humble branch.
I wasn't sure why the humble branch had conflicts; it looks like the last change to the relevant file was a year ago, long before any of the changes in moveit/moveit1#3592
riv-mjohnson commentedon Nov 21, 2024
The diff https://github.com/moveit/moveit2/pull/3119/files is almost identical to the diff https://github.com/moveit/moveit/pull/3592/files, so I think accepting all incoming changes is the right thing to do.
TSNoble commentedon Nov 23, 2024
The backport has been merged, but I think @rr-mark was getting linker issues testing it out. I'll be in work tomorrow so will give it a shot then
sea-bass commentedon Nov 23, 2024
Make sure you guys blow away all the binary installs of MoveIt
sudo apt remove ros-humble-moveit-*before rebuilding!riv-tnoble commentedon Nov 25, 2024
@sea-bass
Just got the compilation working and all looks good! No subframe issues. Closing as resolved