HALRobotics / Beta

HAL Robotics Framework beta release and associated documentation.
17 stars 3 forks source link

Digital Input Declaration in Staubli #144

Open tristangobin opened 1 month ago

tristangobin commented 1 month ago

Is there an existing issue for this?

Description of the bug

problem

When you need to use signals, such as Digital Input or Outputs, you need to declare them and they must appear in the .dtx file generate with other staubli files. Signals declaration is supported for Output as soon as you use them in the code. (with a set signal component, for example.) However, there is no component allowing using input signals, which do not allow declaring input signals. It should be good to export signals if they are supposed to be used elswhere in custom action for exemple

use case

In my case, I use a wait(digitalInput==true) in a custom action. I still need the signal to be declared in the dtx file.

Steps To Reproduce

Declare input signals in a Staubli controller. Export code, no input signal are declared in the .dtx file.

Related Issues

No response

Additional Information

No response