-
 
No version for distro humble. Known supported distros are highlighted in the buttons above.
No version for distro iron. Known supported distros are highlighted in the buttons above.
No version for distro jazzy. Known supported distros are highlighted in the buttons above.
No version for distro rolling. 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 2020-10-30
Dev Status MAINTAINED
CI status Continuous Integration : 0 / 0
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

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

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

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 Robotics Stack Exchange

No version for distro galactic. 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 2020-10-30
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

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

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

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 Robotics Stack Exchange