This repo contains some ros packages for control of the SDH hand (ros noetic).
First clone this repo in your catkin workspace:
git clone git@github.com:jelledouwe/sdh.git
Then install the dependencies:
rosdep update
rosdep install --from-paths src --ignore-src -r -y
Then build/make the package:
catkin_make
Finally, source you workspace.
The schunk_bringup package can be used to bring up the real and simulated hand.
Run for the real hand:
roslaunch schunk_bringup main.launch
And for the simulated hand:
roslaunch schunk_bringup main.launch sim:=true
This will launch a gazebo simulation.
To ease controlling the hand, there is an SDH interface.
import rospy
import sdh_interface
from sdh_interface import SDHInterface
if __name__ == "__main__":
rospy.init_node("example")
sdhi = SDHInterface()
rospy.sleep(10)
sdhi.cmdOpen()
rospy.sleep(10)
sdhi.cmdGoToStartPos()
import rospy
import sdh_interface
from sdh_interface_sim import SDHInterfaceSim
if __name__ == "__main__":
rospy.init_node("example")
sdhi = SDHInterfaceSim()
rospy.sleep(10)
sdhi.cmdOpen()
rospy.sleep(10)
sdhi.cmdGoToStartPos()
Files adapted from Fraunhofer Institute for Manufacturing Engineering and Automation (IPA). Also adapted files from @padmaja-kulkarni.