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

Couldn't load kinematics.yaml when using hybrid_planning_demo_node.cpp #2968

Open
sm3304love opened this issue Aug 12, 2024 · 1 comment
Open
Labels
bug Something isn't working stale Inactive issues and PRs are marked as stale and may be closed automatically.

Comments

@sm3304love
Copy link

Description

Overview of your issue here.

Your environment

  • ROS Distro: Iron
  • OS Version: Ubuntu 22.04
  • Source build
  • If source, which branch? : iron

Steps to reproduce

Modify hybrid_planning_demo_node.cpp in moveit_hybrid_planning pkg to use Cartesian goal instead of joint goal


    moveit::core::robotStateToRobotStateMsg(*robot_state, goal_motion_request.start_state);
    goal_motion_request.group_name = planning_group;
    goal_motion_request.num_planning_attempts = 100;
    goal_motion_request.max_velocity_scaling_factor = 0.1;
    goal_motion_request.max_acceleration_scaling_factor = 0.1;
    goal_motion_request.allowed_planning_time = 60;
    goal_motion_request.planner_id = "ompl";
    goal_motion_request.pipeline_id = "ompl";

    geometry_msgs::msg::PoseStamped desired_pose_stamped;
    desired_pose_stamped.header.frame_id = "world";
    desired_pose_stamped.pose.position.x = 0.3;
    desired_pose_stamped.pose.position.y = 0.0;
    desired_pose_stamped.pose.position.z = 0.59;
    desired_pose_stamped.pose.orientation.x = 1.0;
    desired_pose_stamped.pose.orientation.y = 0.0;
    desired_pose_stamped.pose.orientation.z = 0.0;
    desired_pose_stamped.pose.orientation.w = 0.0;

    moveit::core::RobotState goal_state(robot_model);

    // std::vector<double> joint_values = { 0.0, 0.0, 0.0, 0.0, 0.0, 1.571, 0.785 };
    // goal_state.setJointGroupPositions(joint_model_group, joint_values);

    bool success = goal_state.setFromIK(joint_model_group, desired_pose_stamped.pose);
    if (!success)
    {
      RCLCPP_ERROR(LOGGER, "Failed to set goal state from IK");
      return;
    }

    goal_motion_request.goal_constraints.resize(1);
    goal_motion_request.goal_constraints[0] =
        kinematic_constraints::constructGoalConstraints(goal_state, joint_model_group);

Expected behaviour

Get IK solution successfully

Actual behaviour

Failed to set goal state from IK

Backtrace or Console output

[hybrid_planning_demo_node-8] [WARN] [1723451010.734031350] [moveit_ros.robot_model_loader]: No kinematics plugins defined. Fill and load kinematics.yaml!
[hybrid_planning_demo_node-8] [ERROR] [1723451010.734083191] [moveit_robot_state.robot_state]: No kinematics solver instantiated for group 'panda_arm'
[hybrid_planning_demo_node-8] [ERROR] [1723451010.734105439] [test_hybrid_planning_client]: Failed to set goal state from IK
@sm3304love sm3304love added the bug Something isn't working label Aug 12, 2024
@sm3304love sm3304love changed the title Can't load kinematics.yaml when using hybrid_planning_demo_node.cpp Couldn't load kinematics.yaml when using hybrid_planning_demo_node.cpp Aug 12, 2024
Copy link

This issue is being labeled as stale because it has been open 45 days with no activity. It will be automatically closed after another 45 days without follow-ups.

@github-actions github-actions bot added the stale Inactive issues and PRs are marked as stale and may be closed automatically. label Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale Inactive issues and PRs are marked as stale and may be closed automatically.
Projects
None yet
Development

No branches or pull requests

1 participant