GithubHelp home page GithubHelp logo

mit-spark / config_utilities Goto Github PK

View Code? Open in Web Editor NEW
23.0 23.0 4.0 457 KB

Automatic C++ config structs and tools.

License: BSD 3-Clause "New" or "Revised" License

CMake 1.90% C++ 96.56% C 0.59% Python 0.95%
config cpp ros tools utilities yaml

config_utilities's People

Contributors

nathanhhughes avatar schmluk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

config_utilities's Issues

`demo_params.yaml` does not exist in the `resources` folder.

Hello, maintainers!

I just tested a roslaunch version of config_utilities, but the error message comes as follows:

RLException: error loading <rosparam> tag: 
	file does not exist [/home/shapelim/config_ws/src/config_utilities/config_utilities/demos/resources/demo_params.yaml]
XML is <rosparam file="$(find config_utilities)/demos/resources/demo_params.yaml"/>
The traceback for the exception was written to the log file

since in demo_ros.launch, it requires $(find config_utilities)/demos/resources/demo_params.yaml, but it does not exist.


I guess it should be params.yaml, right?

If I tested it by using params.yaml, then it output as follows:

SUMMARY
========

PARAMETERS
 * /demo_ros/b: False
 * /demo_ros/distance: -0.9876
 * /demo_ros/i: 123
 * /demo_ros/map/b: 2
 * /demo_ros/map/c: 3
 * /demo_ros/map/d: 4
 * /demo_ros/map/e: 5
 * /demo_ros/mat: [[1, 2, 3], [4, 5...
 * /demo_ros/my_enum: B
 * /demo_ros/s: a string in a file
 * /demo_ros/sub_ns/color: [255, 255, 255]
 * /demo_ros/sub_ns/f: 55555.55555
 * /demo_ros/sub_ns/size: 101010101
 * /demo_ros/vec: [5, 4, 3, 2, 1]
 * /rosdistro: noetic
 * /rosversion: 1.16.0

NODES
  /
    demo_ros (config_utilities/demo_ros)

ROS_MASTER_URI=http://localhost:11311

process[demo_ros-1]: started with pid [4049935]
[ INFO] [1703653451.855092553]: 
=================================== MyConfig ===================================
i:                            123
distance [m]:                 -0.9876
b:                            false
vec:                          [5, 4, 3, 2, 1]
map:                          {b: 2, c: 3, d: 4, e: 5}
mat:                          [[1, 2, 3],
                               [4, 5, 6],
                               [7, 8, 9]]
my_enum:                      B
sub_config [SubConfig] (default):
   f:                         0.123 (default)
   s:                         test (default)
================================================================================
[ INFO] [1703653451.862168879]: I'm a DerivedA with config.f='0.123'.
[ WARN] [1703653451.867913264]: Errors parsing config 'MyConfig':
=================================== MyConfig ===================================
Warning: Failed to parse param 'vec': Data is not a sequence.
================================================================================
[ WARN] [1703653451.868092917]: Invalid config 'MyConfig':
=================================== MyConfig ===================================
Warning: Check [1/2] failed for 'i': param > 0 (is: '-1').
================================================================================
[ERROR] [1703653451.872575964]: No module of type 'A random type' registered to the factory for BaseT='demo::Base' and ConstructorArguments={}. Registered are: 'DerivedB', 'DerivedA'.

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.