ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

No p gain specified for pid

asked 2022-01-13 11:17:19 -0600

harish556 gravatar image

updated 2022-01-13 15:13:37 -0600

Mike Scheutzow gravatar image

I have made custom urdf for 6 DOF robot, when I run it it shows this error image description

I have added ros control to this this is the YAML file

robot: #list of controllers joint_state_controller: type: joint_state_controller/JointStateController publish_rate: 50

arm_controller:
  type: "position_controllers/JointTrajectoryController"
  joints:
    - base_link_link_1
    - link_1_link_2
    - link_2_link_3
    - link_3_link_4
    - link_4_link_5
    - link_5_link_6
  gains:
    base_link_link_1: {p: 100, i: 0.01, d: 1}
    link_1_link_2:    {p: 100, i: 0.01, d: 1}
    link_2_link_3:    {p: 100, i: 0.01, d: 1}
    link_3_link_4:    {p: 100, i: 0.01, d: 1}
    link_4_link_5:    {p: 100, i: 0.01, d: 1}
    link_5_link_6:    {p: 100, i: 0.01, d: 1}

  constraints:
    goal_time: 10.0                  # Override default

  state_publish_rate:  50            # Override default
  action_monitor_rate: 30            # Override default
  stop_trajectory_duration: 0        # Override default

gripper_controller:
  type: "effort_controllers/JointTrajectoryController"
  joints:
    - gripper_right_joint
    - gripper_left_joint
  gains:
    gripper_right_joint: {p: 100, i: 1, d: 10, i_clamp: 1.0}
    gripper_left_joint:  {p: 100, i: 1, d: 10, i_clamp: 1.0}
  constraints:
    goal_time: 3.0
    gripper_right_joint:
      goal: 0.02
    gripper_left_joint:
      goal: 0.02

i am used ros noetic

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2022-01-13 15:11:25 -0600

Mike Scheutzow gravatar image

This error message is coming from gazebo_ros_control, not the standard ros_control node (which is what the yaml file you provided is for.) Notice the param path name the message complains about contains "gazebo_ros_control", not "arm_controller". See #q293830 for an example of how to specify the values in a yaml file.

edit flag offensive delete link more

Comments

Agree with Mike.

osilva gravatar image osilva  ( 2022-01-13 15:33:25 -0600 )edit

thanks for that

harish556 gravatar image harish556  ( 2022-01-13 23:41:23 -0600 )edit
0

answered 2022-01-13 11:58:47 -0600

AndyZe gravatar image

I'm not sure but try a decimal point to make sure the parameter is interpreted as a double: 100.0

edit flag offensive delete link more

Comments

no, that didn't work

harish556 gravatar image harish556  ( 2022-01-13 12:02:19 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2022-01-13 11:17:19 -0600

Seen: 139 times

Last updated: Jan 13 '22