Sawyer: how to access to control of cameras and data of force sensor?(SDK)


Cao Jin
 Share

Recommended Posts

Hi,

Is it possible to control cameras (focusing, set exposure time, etc) through the SDK? And how to switch on/off the light source of the hand camera? Only lights of head and cuff can be commanded through the existing example code.

Since the force control laws and algorithms are concerned, how can I read force sensor data of each joint? And is there any interface to directly read external force/torques by transformations?

Thanks.

Link to comment
Share on other sites

  • 2 weeks later...

For the camera I found this...

_camera = intera_interface.Cameras()
print _camera.cameras_io['right_hand_camera']['interface'].list_signal_names()

has exposure, brightness etc. (no focus)

Then play with: https://github.com/RethinkRobotics/intera_sdk/blob/b12ee1627023a12b604148174be1cbd9aafdeb93/intera_interface/src/intera_io/io_interface.py#L231

 

Link to comment
Share on other sites

Thanks a lot!

Updates:

Problem1: detailed camera control. Solved by signals like Mark Silliman posted, but still can't focus. 

                   New1: How to focus by means of ROS or Python?

                   New2: What's the difference between set_siganl_value and set_port_value?

Problem2: switch on/off light source. I can turn it on now by set signal 'set_strobe' of right_hand_camera true, but the light continuously blinking.

                  New3: How can I just turn it on? Since the light is embeded by the camera, is it possible?

Problem3: force/torque sensor data. I found a topic named /robot/limb/right/torque_data, but the type of this topic is motor_sensor_msgs/... . The massage is not defined in the sdk package, so I can't read this topic.

 

Link to comment
Share on other sites

Thanks a lot!

Updates:

Problem1: set detailed camera control. 

Solved by signals like Mark Silliman posted, but still can't focus. 

                   New1: How to focus camera by means of ROS or Python?

                   New2: What's the difference between set_siganl_value and set_port_value?

Problem2: switch on/off light source.

I can turn it on now by set signal 'set_strobe' of right_hand_camera true, but the light continuously blinking.

                  New3: How can I just turn it on? Since the light is embeded by the camera, is it possible?

Problem3: read force/torque sensor data.

I found a topic named /robot/limb/right/torque_data, but the type of this topic is motor_sensor_msgs/... . The massage is not defined in the sdk package, so I can't read this topic.

                 New4: Is that topic the one I want? Is the package that includes the motor_sensor_msgs open source and how can I find it?

Futhermore New5: Is there any complete list of functions and devices I can use? Because I had no idea about the signals before, so I could never find these detailed camera control settings, which makes me think of many other usage I missed. Is there any detailed explanation?

Sorry for last reply which I have not completed before posting.

I will appreciate it a lot if any of potential solutions and ideas are replied!

Link to comment
Share on other sites

  • 8 months later...
  • 5 months later...

Access to the Sawyer's external force feedback should be rather facile, since it is essential for the devise of most interaction control algorithms. I have already sifted through the available ROS topics (many of which are inaccessible and return build fail messages when using the 'echo' command), but it was to no avail.

Are there any updates on this critical issue? 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share