Skip to content

Is there a way to quickly query the gripper state using xarm_api? #143

@IrvingF7

Description

@IrvingF7

I am using the humble branch.

Basically, when using fake hardware or using xarm_moveit_servo, there is a remapping of the joint name when launching joint_state_publisher. This publishes a /joint_states topic that not only includes the robot's joints, but also the gripper's status because of the remapping. This is a different topic from /xarm/joint_states because the /xarm/joint_states one doesn't include the gripper info.

I am wondering if using anything from xarm_api can achieve something similar? I want to be able to see the gripper's status at the same frequency as my joint states (e.g. 100Hz).

Right now, I can keep the moveit_servo running alongside xarm_api without using it so that I have the joint_states topic. But there are two problems:

  1. It seems like the drive_joint value is not really updated, even if I close/open the gripper. In my moveit code, I have architected it in a way that a move_group is running alongside the moveit_servo, so it seems like the drive_joint is correctly updated when I collect my data. (following the advice here: How can we teleop the Gripper from xarm_moveit_servo? #104)
  2. I think it's not really recommended to keep the api running along with Moveit, right? So I would really like to see some alternative

I thought about just writing a custom publisher that constantly sends requests to the get_gripper_position service and publishes the result at 100hz, but I don't know if it's a good idea, and I want to hear from the official team.

Thank you in advance

Or, even better, the Xarm team can implement some kind of topic that is published by the xarm_api that works similarly to /xarm/joint_states

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions