robot.get_current_state() does not publish current state when using moveit_commander.RobotCommander()


Peng Chang
 Share

Recommended Posts

Hello all,

I'm using Sawyer robot with moveIt planner. I used the "robot = moveit_commander.RobotCommander()" and "print robot.get_current_state()". The output is showing below (the joint states are 0s or empty):

============ Printing robot state
[ WARN] [1533160158.107494140]: Joint values for monitored state are requested but the full state is not known
joint_state:
  header:
    seq: 0
    stamp:
      secs: 0
      nsecs:         0
    frame_id: "/base"
  name: [right_j0, head_pan, right_j1, right_j2, right_j3, right_j4, right_j5, right_j6, right_gripper_l_finger_joint,
  right_gripper_r_finger_joint]
  position: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
  velocity: []
  effort: []
multi_dof_joint_state:
  header:
    seq: 0
    stamp:
      secs: 0
      nsecs:         0
    frame_id: "/base"
  joint_names: []
  transforms: []
  twist: []
  wrench: []
attached_collision_objects: []
is_diff: False

By the way, by referring to "https://groups.google.com/forum/#!topic/moveit-users/jKV9QuHeFXU", I tried to use "roslaunch sawyer_moveit_config sawyer_moveit.launch electric_gripper:=true joint_states:=/robot/joint_states" to remap the /robot/joint_states. It could not work either. Can you help me with that? Thank you.

Edited by Peng Chang
Link to comment
Share on other sites

  • 6 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share