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

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.

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.

click to hide/show revision 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.