Skip to content

Commit 2a0268a

Browse files
zixingjiangstefanscherzinger
authored andcommitted
Get the robot_description from the controller's base class for _Jazzy_
1 parent f53f798 commit 2a0268a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cartesian_controller_handles/src/motion_control_handle.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,11 @@ MotionControlHandle::on_configure(const rclcpp_lifecycle::State & previous_state
141141
urdf::Model robot_model;
142142
KDL::Tree robot_tree;
143143

144+
#if defined CARTESIAN_CONTROLLERS_JAZZY
145+
std::string robot_description = this->get_robot_description();
146+
#else
144147
std::string robot_description = get_node()->get_parameter("robot_description").as_string();
148+
#endif
145149
if (robot_description.empty())
146150
{
147151
RCLCPP_ERROR(get_node()->get_logger(), "robot_description is empty");

0 commit comments

Comments
 (0)