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/commandpub = rospublisher('/robot/end_effector/right_gripper/command')msg = rosmessage('baxter_core_msgs/EndEffectorCommand')showdetails(msg)msg.Id=65538msg.Command= 'grip'msg.Sender= 'foo'msg.Sequence= 1send(pub,msg)% nothing happens
msg.Command= 'release'send(pub,msg) %nothing happens again
rosshutdown
Best Answer