No version for distro bouncy. Known supported distros are highlighted in the buttons above.
No version for distro ardent. Known supported distros are highlighted in the buttons above.
No version for distro melodic. Known supported distros are highlighted in the buttons above.
No version for distro lunar. Known supported distros are highlighted in the buttons above.

ddynamic_reconfigure_python package from ddynamic_reconfigure_python repo

ddynamic_reconfigure_python

Package Summary

Tags No category tags.
Version 0.0.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/pal-robotics/ddynamic_reconfigure_python.git
VCS Type git
VCS Version master
Last Updated 2016-09-21
Dev Status UNMAINTAINED
Released RELEASED

Package Description

The ddynamic_reconfigure_python package contains a class to instantiate dynamic reconfigure servers on the fly registering variables

Additional Links

No additional links.

Maintainers

  • Sam Pfeiffer
  • Jordi Pages

Authors

No additional authors.

Dynamic dynamic reconfigure python

Register variables in a dynamic reconfigure server and run the server on the fly. No more .cfg files and CMakeLists.txt tinkering!

Example:

import rospy
from ddynamic_reconfigure_python.ddynamic_reconfigure import DDynamicReconfigure

def dyn_rec_callback(config, level):
    rospy.loginfo("Received reconf call: " + str(config))
    return config

if __name__ == '__main__':
    rospy.init_node('test_ddynrec')

    # Create a D(ynamic)DynamicReconfigure
    ddynrec = DDynamicReconfigure("example_dyn_rec")

    # Add variables (name, description, default value, min, max, edit_method)
    ddynrec.add_variable("decimal", "float/double variable", 0.0, -1.0, 1.0)
    ddynrec.add_variable("integer", "integer variable", 0, -1, 1)
    ddynrec.add_variable("bool", "bool variable", True)
    ddynrec.add_variable("string", "string variable", "string dynamic variable")
    enum_method = ddynrec.enum([ ddynrec.const("Small",      "int", 0, "A small constant"),
                       ddynrec.const("Medium",     "int", 1, "A medium constant"),
                       ddynrec.const("Large",      "int", 2, "A large constant"),
                       ddynrec.const("ExtraLarge", "int", 3, "An extra large constant")],
                     "An enum example")
    ddynrec.add_variable("enumerate", "enumerate variable", 1, 0, 3, edit_method=enum_method)

    # Start the server
    ddynrec.start(dyn_rec_callback)

    rospy.spin()


Try the example with rosrun ddynamic_reconfigure_python example.py. Run rosrun rqt_reconfigure rqt_reconfigure to play with the values.

You also have a couple of examples using it inside of a class in the scripts folder.

CHANGELOG

Changelog for package ddynamic_reconfigure_python

0.0.1 (2016-09-21)

  • Add namespace to reconfigure server
  • Added examples, making the api easier to use
  • Initial commit
  • Contributors: Sam Pfeiffer

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged ddynamic_reconfigure_python at answers.ros.org

ddynamic_reconfigure_python package from ddynamic_reconfigure_python repo

ddynamic_reconfigure_python

Package Summary

Tags No category tags.
Version 0.0.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/pal-robotics/ddynamic_reconfigure_python.git
VCS Type git
VCS Version master
Last Updated 2016-09-21
Dev Status UNMAINTAINED
Released RELEASED

Package Description

The ddynamic_reconfigure_python package contains a class to instantiate dynamic reconfigure servers on the fly registering variables

Additional Links

No additional links.

Maintainers

  • Sam Pfeiffer
  • Jordi Pages

Authors

No additional authors.

Dynamic dynamic reconfigure python

Register variables in a dynamic reconfigure server and run the server on the fly. No more .cfg files and CMakeLists.txt tinkering!

Example:

import rospy
from ddynamic_reconfigure_python.ddynamic_reconfigure import DDynamicReconfigure

def dyn_rec_callback(config, level):
    rospy.loginfo("Received reconf call: " + str(config))
    return config

if __name__ == '__main__':
    rospy.init_node('test_ddynrec')

    # Create a D(ynamic)DynamicReconfigure
    ddynrec = DDynamicReconfigure("example_dyn_rec")

    # Add variables (name, description, default value, min, max, edit_method)
    ddynrec.add_variable("decimal", "float/double variable", 0.0, -1.0, 1.0)
    ddynrec.add_variable("integer", "integer variable", 0, -1, 1)
    ddynrec.add_variable("bool", "bool variable", True)
    ddynrec.add_variable("string", "string variable", "string dynamic variable")
    enum_method = ddynrec.enum([ ddynrec.const("Small",      "int", 0, "A small constant"),
                       ddynrec.const("Medium",     "int", 1, "A medium constant"),
                       ddynrec.const("Large",      "int", 2, "A large constant"),
                       ddynrec.const("ExtraLarge", "int", 3, "An extra large constant")],
                     "An enum example")
    ddynrec.add_variable("enumerate", "enumerate variable", 1, 0, 3, edit_method=enum_method)

    # Start the server
    ddynrec.start(dyn_rec_callback)

    rospy.spin()


Try the example with rosrun ddynamic_reconfigure_python example.py. Run rosrun rqt_reconfigure rqt_reconfigure to play with the values.

You also have a couple of examples using it inside of a class in the scripts folder.

CHANGELOG

Changelog for package ddynamic_reconfigure_python

0.0.1 (2016-09-21)

  • Add namespace to reconfigure server
  • Added examples, making the api easier to use
  • Initial commit
  • Contributors: Sam Pfeiffer

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged ddynamic_reconfigure_python at answers.ros.org

No version for distro jade. Known supported distros are highlighted in the buttons above.
No version for distro hydro. Known supported distros are highlighted in the buttons above.