diff --git a/src/moveit_visual_tools.cpp b/src/moveit_visual_tools.cpp index 445f202..113e0b5 100644 --- a/src/moveit_visual_tools.cpp +++ b/src/moveit_visual_tools.cpp @@ -1248,6 +1248,9 @@ bool MoveItVisualTools::publishTrajectoryPath(const moveit_msgs::RobotTrajectory ROS_WARN_STREAM_NAMED(LOGNAME, "Unable to publish trajectory path because trajectory has zero points"); return false; } + + // Ensure that the robot name is available. + loadSharedRobotState(); // Create the message moveit_msgs::DisplayTrajectory display_trajectory_msg;