awesomebytes / ddynamic_reconfigure Goto Github PK
View Code? Open in Web Editor NEWHistorical fork for PAL Robotics' ddynamic_reconfigure, please use PAL's released version
Home Page: https://github.com/pal-robotics/ddynamic_reconfigure
Historical fork for PAL Robotics' ddynamic_reconfigure, please use PAL's released version
Home Page: https://github.com/pal-robotics/ddynamic_reconfigure
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.");
}
A friendly reminder, that even though this project has evolved a lot and distanced significantly from it's original implementation, the original authors and licenses should not be removed.
The original is also hosted on github: https://github.com/pal-robotics/ddynamic_reconfigure
Hello,
Can you comment what is the license of the code?
I want to use your code in an Apache 2.0 project.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.