Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix of ManipulatorInfo and typos #914

Merged
merged 2 commits into from
Jul 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ struct ManipulatorInfo
ManipulatorInfo(std::string manipulator_,
std::string working_frame_,
std::string tcp_frame_,
const Eigen::Isometry3d& tcp_offset_ = Eigen::Isometry3d::Identity());
std::variant<std::string, Eigen::Isometry3d> tcp_offset_ = Eigen::Isometry3d::Identity());

/** @brief Name of the manipulator group */
std::string manipulator;
Expand Down
4 changes: 2 additions & 2 deletions tesseract_common/src/manipulator_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ namespace tesseract_common
ManipulatorInfo::ManipulatorInfo(std::string manipulator_,
std::string working_frame_,
std::string tcp_frame_,
const Eigen::Isometry3d& tcp_offset_)
std::variant<std::string, Eigen::Isometry3d> tcp_offset_)
: manipulator(std::move(manipulator_))
, working_frame(std::move(working_frame_))
, tcp_frame(std::move(tcp_frame_))
, tcp_offset(tcp_offset_)
, tcp_offset(std::move(tcp_offset_))
{
}

Expand Down
2 changes: 1 addition & 1 deletion tesseract_kinematics/core/src/rep_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ InverseKinematics::UPtr REPInvKinFactory::create(const std::string& solver_name,

inv_kin = plugin_factory.createInvKin(m_info.class_name, m_info, scene_graph, scene_state);
if (inv_kin == nullptr)
throw std::runtime_error("REPInvKinFactory, failed to create positioner forward kinematics!");
throw std::runtime_error("REPInvKinFactory, failed to create positioner inverse kinematics!");
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion tesseract_kinematics/core/src/rop_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ InverseKinematics::UPtr ROPInvKinFactory::create(const std::string& solver_name,

inv_kin = plugin_factory.createInvKin(m_info.class_name, m_info, scene_graph, scene_state);
if (inv_kin == nullptr)
throw std::runtime_error("ROPInvKinFactory, failed to create positioner forward kinematics!");
throw std::runtime_error("ROPInvKinFactory, failed to create positioner inverse kinematics!");
}
else
{
Expand Down