ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

schunk_svh_driver : How I can read current position?

asked 2015-04-27 08:04:15 -0500

Alba gravatar image

Hi, I want to read current position and the value of current at every instant to control the grasps online. Can you help me? Thank you!

edit retag flag offensive close merge delete

Comments

channel_feedback (sensor_msgs/JointState)

Current position of the channels (fingers).
inflo gravatar image inflo  ( 2015-04-27 10:05:08 -0500 )edit

Yes, I know that I can use channel_feedback, but I don't know how I can use it, because I try calling: rostopic echo svh_controller/channel_feedback and it prints messages to screen, but how I can use the current data to update the channel_targets?

Alba gravatar image Alba  ( 2015-04-27 10:47:28 -0500 )edit

you could send it with "rostopic pub ..." or write a node which publishes to channel_targets

inflo gravatar image inflo  ( 2015-04-27 11:19:39 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2015-04-28 09:10:29 -0500

Alba gravatar image

Ok. I solved my problem, I can read the current position calling:

rostopic echo svh_controller/channel_feedback
edit flag offensive delete link more
0

answered 2015-04-27 11:13:20 -0500

inflo gravatar image

channel_targets (sensor_msgs/JointState)

Target position the channels (fingers) shall move to. Note that it is less performant to give targets for individual channels or a subset of the available DoF than providing it for all at once. If 8 channels are given instead of 9 the driver will send 8 packets instead of 1 which might influence serial device performance. Only the names and positions will be evaluated from the JointState message.
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-04-27 08:04:15 -0500

Seen: 290 times

Last updated: Apr 28 '15