Closed skaeringur97 closed 1 year ago
This issue was caused by kinematics.yaml not loading correctly. I used this function to load it:
def load_file(package_name, file_path):
package_path = get_package_share_directory(package_name)
absolute_file_path = os.path.join(package_path, file_path)
try:
with open(absolute_file_path, "r") as file:
return file.read()
except EnvironmentError: # parent of IOError, OSError *and* WindowsError where available
return None
While if I use kinematics_yaml = PathJoinSubstitution( [FindPackageShare("ur_moveit_config"), "config", "kinematics.yaml"] )
instead, it works!
@skaeringur97 which file do you refer to? I assume something outside of this repository? Or did you have an old version of
@fmauch I was loading the same kinematics.yaml file as you showed, but using load_yaml("moveit_config_package", "config/kinematics.yaml"
instead of the correct way you showed.
Description
I followed the hybrid planning example and modified it to work with the UR10e robot. It works using the same method as the example uses, but if I try sending positions it always fails in the planning stage. Sending positions works for me on the Panda robot, as well as the Kinova Kortex, but not with the UR10e. I have verified that the position I am sending is valid, by making a simple MoveIt node that just uses MoveGroupInterface to go to a position. This plans and executes without problems.
Your environment
Steps to reproduce
To reproduce this issue, duplicate the hybrid planning example and replace the test/hybrid_planning_demo_node.cpp with this, the test/config/global_planner.yaml with this and the test/config/local_planner.yaml with this. The launch file also needs to be changed, so test/launch/hybrid_planning_common.py changes to this
If you want to see it working with the joint positions, replace these lines:
with these:
in test/hybrid_planning_demo_node.cpp, and the hybrid planner will succeed.
Launching the code
Reason for using use_sim_time:=true
Expected behaviour
A UR10e robot moves to a certain position
Actual behaviour
Planning fails
Backtrace or Console output
Console output