Skip to content

Commit

Permalink
Consider attached collision objects in the ComputeFK service (#2953)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniGarciaLopez authored Aug 7, 2024
1 parent 4ad84cc commit f30d51b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,10 @@ bool MoveGroupKinematicsService::computeFKService(const std::shared_ptr<rmw_requ
moveit::core::robotStateMsgToRobotState(req->robot_state, rs);
for (std::size_t i = 0; i < req->fk_link_names.size(); ++i)
{
if (rs.getRobotModel()->hasLinkModel(req->fk_link_names[i]))
if (rs.knowsFrameTransform(req->fk_link_names[i]))
{
res->pose_stamped.resize(res->pose_stamped.size() + 1);
res->pose_stamped.back().pose = tf2::toMsg(rs.getGlobalLinkTransform(req->fk_link_names[i]));
res->pose_stamped.back().pose = tf2::toMsg(rs.getFrameTransform(req->fk_link_names[i]));
res->pose_stamped.back().header.frame_id = default_frame;
res->pose_stamped.back().header.stamp = context_->moveit_cpp_->getNode()->get_clock()->now();
if (do_transform)
Expand Down

0 comments on commit f30d51b

Please sign in to comment.