visose / Robots

Create and simulate ABB, KUKA, UR, and Staubli robot programs.
MIT License
305 stars 127 forks source link

Linear Rail: Data conversion failed from Integer to Joints #264

Closed lin-ycv closed 8 months ago

lin-ycv commented 10 months ago

Is there an existing issue for this?

What Robots version are you using?

1.6.7

What Rhino version are you using?

Rhino 8 for Windows

Current Behavior

number calculated from multiplication isn't accepted, but converting to a string using a panel is ok image

Expected Behavior

it should be able to take numbers for linear rail

Steps To Reproduce

No response

Anything else?

No response

visose commented 10 months ago

Hi, an implicit cast not being implemented is not really a bug, it would be a feature, but I can add it. You can already cast the integer to a number (double) instead of a string.

lin-ycv commented 10 months ago

Thanks, I thought it's a bug because it when you input a number directly from the slider it gets converted, so I thought that logic has been implemented.

visose commented 10 months ago

That is due to the slider is outputting an number parameter rather than an integer.

visose commented 8 months ago

Integer to Joint parameter implicit cast should work in version 1.7.0. Feel free to reopen if not working as expected.