-
Notifications
You must be signed in to change notification settings - Fork 164
Description
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:
- It seems like the
drive_jointvalue 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 thedrive_jointis correctly updated when I collect my data. (following the advice here: How can we teleop the Gripper from xarm_moveit_servo? #104) - 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