Skip to content

capability editor (python): error on not specifying default value for non-obligatory parameter #93

@floweisshardt

Description

@floweisshardt

for a parameter in the capability editor you can choose if it is obligatory true or false.

If the parameter is not obligatory you should be able to specify no default value and still be able to build and run the node.

Doing this I get the follwing error:

File "/home/fmw/git/deliver_ws/src/test/cfg/test.cfg", line 8
    gen.add("timeout", int_t, 0, "Autogenerated parameter based on model.", , -100, 100)
                                                                            ^
SyntaxError: invalid syntax

for obligatory parameters:

  • should be possible to specify no default value
  • catkin_make ok
  • error on rosun: message on running the node without specifying a value for the parameter

for non-obligatory parameters:

  • should be possible to specify no default value
  • catkin_make ok
  • rosrun ok: but parameter should be set to None

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions