-
Notifications
You must be signed in to change notification settings - Fork 143
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
Merge with spot_arm urdf from spot_ros2 #144
base: master
Are you sure you want to change the base?
Conversation
Thanks for this. Are the tf frames generated by the new URDF different to those in the existing version? |
Good point, I made sure to change the joint names such that they stay the same, but not the links. |
I think it is probably good to match names with the ros2 repo but it might mean that people using this one will have to change stuff in their code, which is why I ask. |
I understand. I leave this up to you guys entirely, I mostly made this because I wanted to see if other people had issues with this urdf for the arm, such as the one in the images I've attached. |
It definitely makes sense to make the switch, since clearly there is an issue with the previous version, but I will need to make an announcement to make sure people know what frames have changed. I think synchronising the frame names with the ros2 version makes sense since people will need to switch over to that eventually and making sure the urdf is the same would likely make things easier. |
I've updated the joint names to correspond to the spot_ros2 names (which come from the BD names), and updated the "friendly joint names" to convert to these values.
@EceChaik could you please check that the live joint update works correctly with these changes? |
Will check, though it might be next week, due to travelling for IROS |
I just had to do the above commit, cause the wr0 name was written as wr1. P.S. The only reason I had changed the mass value of the virtual fixed joint 'hr0' to 1e-3 from 1e-6, was for people who might wanna use it for simulation in Gazebo. There, a link of mass as low as 1e-6 will be skipped. |
Great, thank you for confirming. I don't use gazebo so wasn't aware of that requirement. Did you need to use the virtual joint for anything that you were doing? If so I should probably change the mass back. |
This repo is not made for simulation so I don't think it matters. On the other hand, the mass value won't affect anything people do with the real robot using this repo, so I guess reverting to 1e-3 is the solution that covers all users. |
Could this be merged into master at this point @heuristicus? The improved arm simulation would be very beneficial to my groups research |
I can merge this but any existing code that relied on specific frames being related to the arm will not function, as per the table above. Have you tested this for your purposes? |
After some more testing, I've noticed that when using arm ROS service calls with this version of the code, the calls involving the gripper have success False and some error exception printed.
Interestingly, at least some of the commands actually do get executed by the arm and work. The gripper does open and close when these are called. Additionally arm stow, unstow, and carry seem to be working
Is this due to the change in the arm frames? |
I can't say whether the arm frame change is the cause. I don't think there is anything that specifically references the arm frames in the gripper command. It's possible that this is related to the spot wrapper in this repo being behind. I've never had access to a robot with an arm so haven't been able to verify the functionality myself. |
With the spot in the configuration seen in the above image, what follows is the visualization in rviz, with the current spot_arm urdf:
This pull request replaces the arm urdf with the one from the spot_ros2 repo. The resulting visualization in rviz for the same configuration is seen below:
Note the hand frame, which is published by Boston Dynamics and how in the new urdf it is aligned with the robot end-effector.
Fixes #143