Giter Site home page Giter Site logo

awesomebytes / ddynamic_reconfigure Goto Github PK

View Code? Open in Web Editor NEW
7.0 8.0 4.0 135 KB

Historical fork for PAL Robotics' ddynamic_reconfigure, please use PAL's released version

Home Page: https://github.com/pal-robotics/ddynamic_reconfigure

CMake 2.52% C++ 96.19% C 0.45% Shell 0.84%

ddynamic_reconfigure's People

Contributors

awesomebytes avatar doronhi avatar lucamarchionni avatar noam-dori avatar stwirth avatar wew84 avatar wxmerkt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ddynamic_reconfigure's Issues

problem with DDString

hi,
Thanks for sharing this code.
I tried to copy the example given in the README.md file and had a problem with rqt_reconfigre:
doronhi@ubuntu:~$ rosrun rqt_reconfigure rqt_reconfigure
I then try to open the object in the rqt_reconfigure's GUI and get this error:

[ERROR] [1540211050.795114]: bad callback: <bound method Client._descriptions_msg of <dynamic_reconfigure.client.Client object at 0x7fb137260050>>
Traceback (most recent call last):
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/topics.py", line 750, in _invoke_callback
cb(msg)
File "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/client.py", line 338, in _descriptions_msg
self._param_types[n] = self._param_type_from_string(t)
File "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/client.py", line 355, in _param_type_from_string
raise DynamicReconfigureParameterException('parameter has unknown type: %s. This is a bug in dynamic_reconfigure.' % type_str)
DynamicReconfigureParameterException: parameter has unknown type: string. This is a bug in dynamic_reconfigure.

I tried removing the string parameter and everything else works.

I tried running:
rosrun ddynamic_reconfigure_python example.py
It also shows a string parameter but everything works fine now.

It seems to me that something is different in the way python and C++ implements the DDString object.
Or, any suggestions as to what am doing wrong?

Attached is my code:

void MyNode::registerDynamicReconfigCb(ros::NodeHandle& nh)
{
ROS_INFO("Setting Dynamic reconfig parameters.");
// DDynamic setup stage
_dd = std::make_shared<ddynamic_reconfigure::DDynamicReconfigure>(nh);
_dd->add(new DDInt("int_param", 0, "An Integer parameter", 50, 0, 100));
_dd->add(new DDDouble("double_param", 0, "A double parameter", .5, 0, 1));
_dd->add(new DDString("str_param", 0, "A string parameter", "Hello World"));
_dd->start(callback);
ROS_INFO("Done Setting Dynamic reconfig parameters.");
}

license needed

Hello,
Can you comment what is the license of the code?
I want to use your code in an Apache 2.0 project.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.