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

Revision history [back]

click to hide/show revision 1
initial version

It's not well documented, but the SetIO service should allow you to configure the tool voltage when you specify the FUN_SET_TOOL_VOLTAGE for fun, and then setting pin to either 0, 12 or 24.

Some pseudo-code (neither Python nor C++):

req = SetIO()
req.fun = SetIO.FUN_SET_TOOL_VOLTAGE
req.pin = 12

This would set the tool voltage to 12V after invoking the service.

It's not well documented, but the SetIO service should allow you to configure the tool voltage when you specify the FUN_SET_TOOL_VOLTAGE for fun, and then setting pinstate to either 0, 12 or 24.

Some pseudo-code (neither Python nor C++):

req = SetIO()
req.fun = SetIO.FUN_SET_TOOL_VOLTAGE
req.pin req.state = 12

This would set the tool voltage to 12V after invoking the service.

It's not well documented, but the SetIO service should allow you to configure the tool voltage when you specify the FUN_SET_TOOL_VOLTAGE for fun, and then setting state to either 0, 12 or 24.

Some pseudo-code (neither Python nor C++):

req = SetIO()
req.fun = SetIO.FUN_SET_TOOL_VOLTAGE
req.state = 12

This would set the tool voltage to 12V after invoking the service.


Edit:

I have been looking for a long time and cannot find documentation that says if this is possible.

I've submitted ros-industrial/universal_robot#415 to clarify the use of SetIO a bit.

It's not well documented, but the SetIO service should allow you to configure the tool voltage when you specify the FUN_SET_TOOL_VOLTAGE for fun, and then setting state to either 0, 12 or 24.

Some pseudo-code (neither Python nor C++):

req = SetIO()
req.fun = SetIO.FUN_SET_TOOL_VOLTAGE
req.state = 12

This would set the tool voltage to 12V after invoking the service.


Edit:

I have been looking for a long time and cannot find documentation that says if this is possible.

I've submitted ros-industrial/universal_robot#415 to clarify the use of SetIO a bit.

Once that gets merged, the code changes slightly (constants added):

req = SetIO()
req.fun = SetIO.FUN_SET_TOOL_VOLTAGE
req.state = SetIO.STATE_TOOL_VOLTAGE_12V