Open and Close Baxter's gripper
Afficher commentaires plus anciens
Hi, we are trying to make our baxter robot open and close its gripper, we are using the following code that we generate from mathwork tutorial, but is not working, so can you please help?
rosinit('169.254.9.127') % ip address of baxter
rostopic info /robot/end_effector/right_gripper/command
pub = rospublisher('/robot/end_effector/right_gripper/command')
msg = rosmessage('baxter_core_msgs/EndEffectorCommand')
showdetails(msg)
msg.Id=65538
msg.Command= 'grip'
msg.Sender= 'foo'
msg.Sequence= 1
send(pub,msg)% nothing happens
msg.Command= 'release'
send(pub,msg) %nothing happens again
rosshutdown
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur ROS Toolbox dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!