ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Here's what finally worked for me. It is not very readable and the syntax is messy.
condition=IfCondition( PythonExpression( ["'", input_arg, "' == 'arg2' and '", bool_arg, "' == 'false'"] ) ),
There doesn't seem to be much documentation on PythonExpression so it would be helpful to add some and possibly add support for multiple condition.
2 | No.2 Revision |
Here's what finally worked for me. It is not very readable and the syntax is messy.
condition=IfCondition( PythonExpression( ["'", input_arg, "' == 'arg2' and '", bool_arg, "' == 'false'"] ) ),
There doesn't seem to be much documentation on PythonExpression so it would be helpful to add some and possibly add support for multiple condition.conditions.
3 | No.3 Revision |
Here's what finally worked for me. It is not very readable and the syntax is messy.
condition=IfCondition(
PythonExpression(
["'", input_arg, "' == 'arg2' and '", bool_arg, "' == 'false'"]
)
There doesn't seem to be much documentation on PythonExpression so it would be helpful to add some and possibly add support for multiple conditions.