rosparam_shortcuts repository

Repository Summary

Checkout URI https://github.com/davetcoleman/rosparam_shortcuts.git
VCS Type git
VCS Version kinetic-devel
Last Updated 2016-07-02
Dev Status DEVELOPED
Released UNRELEASED

Packages

Name Version
rosparam_shortcuts 0.2.0

README

ROS Param Shortcuts

Quickly load variables from rosparam with good command line error checking.

This package enforces the philosophy that there should be no default parameters - everything must be defined by the user in yaml files (or launch files or where ever) otherwise your program should not run. This helps debug why something isn't working correctly - it will tell you exactly what rosparameters are missing.

Features: - Outputs all loaded data into consule using ROS_DEBUG, so you won't see it unless you turn it on - Namespaces all output within the parent_name - Great for having each class have its own parameter namespace - Helpful error messages if parameter is missing, explaining where it expects to find it - Removes lots of repetitious code - Supports datatypes that rosparam does not by default, such as std::size_t, ros::Duration, Eigen::Affine3d - Supports loading std::vectors easily, and debugging that data - Supports loading an entire list of bool parameters

Developed by Dave Coleman at the University of Colorado Boulder

Status:

  • Build Status Travis - Continuous Integration
  • Build Status ROS Buildfarm - Trusty Devel Source Build
  • Build Status ROS Buildfarm - AMD64 Trusty Debian Build

Install

Ubuntu Debian

sudo apt-get install ros-indigo-rosparam-shortcuts

Build from Source

To build this package, git clone this repo into a catkin workspace and be sure to install necessary dependencies by running the following command in the root of your catkin workspace:

rosdep install -y --from-paths src --ignore-src --rosdistro indigo

Code API

See Class Reference

Usage / Demo

See the file src/example.cpp for example code. To run:

roslaunch rosparam_shortcuts example.launch

Your yaml file would look something like the file config/example.yaml:

example:
  control_rate: 100.0 # double
  param1: 20 # int
  param2: 30 # size_t
  param3: 1 # ros::Duration
  param4: [1, 1, 1, 3.14, 0, 0] # Eigen::Affine3d - x, y, z, roll, pitch, yaw
  param5: [1.1, 2.2, 3.3, 4.4] # std::vector<double>

Include Note

Possible dependency issues - I'm not sure if this is always in issue or if there is an easy fix, but when including this package in another package you might need to add dependencies on Eigen throught that new package. This requires:

package.xml:

<build_depend>eigen</build_depend>
<run_depend>eigen</run_depend>

CMakeLists.txt:

find_package(catkin REQUIRED COMPONENTS
  cmake_modules
  ...
)
find_package(Eigen REQUIRED)
catkin_package(
  DEPENDS
    Eigen
)
include_directories(
  ${EIGEN_INCLUDE_DIRS}
)

If you have a fix for this, let me know!

Testing and Linting

To run roslint, use the following command with catkin-tools:

catkin build --no-status --no-deps --this --make-args roslint

To run catkin lint, use the following command with catkin-tools:

catkin lint -W2

There are currently no unit or integration tests for this package. If there were you would use the following command with catkin-tools:

catkin run_tests --no-deps --this -i

Contribute

Please send PRs for new helper functions, fixes, etc!

Repository Summary

Checkout URI https://github.com/davetcoleman/rosparam_shortcuts.git
VCS Type git
VCS Version jade-devel
Last Updated 2016-05-27
Dev Status DEVELOPED
Released RELEASED

Packages

Name Version
rosparam_shortcuts 0.1.1

README

ROS Param Shortcuts

Quickly load variables from rosparam with good command line error checking.

This package enforces the philosophy that there should be no default parameters - everything must be defined by the user in yaml files (or launch files or where ever) otherwise your program should not run. This helps debug why something isn't working correctly - it will tell you exactly what rosparameters are missing.

Features: - Outputs all loaded data into consule using ROS_DEBUG, so you won't see it unless you turn it on - Namespaces all output within the parent_name - Great for having each class have its own parameter namespace - Helpful error messages if parameter is missing, explaining where it expects to find it - Removes lots of repetitious code - Supports datatypes that rosparam does not by default, such as std::size_t, ros::Duration, Eigen::Affine3d - Supports loading std::vectors easily, and debugging that data - Supports loading an entire list of bool parameters

Developed by Dave Coleman at the University of Colorado Boulder

Status:

  • Build Status Travis - Continuous Integration
  • Build Status ROS Buildfarm - Trusty Devel Source Build
  • Build Status ROS Buildfarm - AMD64 Trusty Debian Build

Install

Ubuntu Debian

sudo apt-get install ros-indigo-rosparam-shortcuts

Build from Source

To build this package, git clone this repo into a catkin workspace and be sure to install necessary dependencies by running the following command in the root of your catkin workspace:

rosdep install -y --from-paths src --ignore-src --rosdistro indigo

Code API

See Class Reference

Usage / Demo

See the file src/example.cpp for example code. To run:

roslaunch rosparam_shortcuts example.launch

Your yaml file would look something like the file config/example.yaml:

example:
  control_rate: 100.0 # double
  param1: 20 # int
  param2: 30 # size_t
  param3: 1 # ros::Duration
  param4: [1, 1, 1, 3.14, 0, 0] # Eigen::Affine3d - x, y, z, roll, pitch, yaw
  param5: [1.1, 2.2, 3.3, 4.4] # std::vector<double>

Include Note

Possible dependency issues - I'm not sure if this is always in issue or if there is an easy fix, but when including this package in another package you might need to add dependencies on Eigen throught that new package. This requires:

package.xml:

<build_depend>eigen</build_depend>
<run_depend>eigen</run_depend>

CMakeLists.txt:

find_package(catkin REQUIRED COMPONENTS
  cmake_modules
  ...
)
find_package(Eigen REQUIRED)
catkin_package(
  DEPENDS
    Eigen
)
include_directories(
  ${EIGEN_INCLUDE_DIRS}
)

If you have a fix for this, let me know!

Testing and Linting

To run roslint, use the following command with catkin-tools:

catkin build --no-status --no-deps --this --make-args roslint

To run catkin lint, use the following command with catkin-tools:

catkin lint -W2

There are currently no unit or integration tests for this package. If there were you would use the following command with catkin-tools:

catkin run_tests --no-deps --this -i

Contribute

Please send PRs for new helper functions, fixes, etc!

Repository Summary

Checkout URI https://github.com/davetcoleman/rosparam_shortcuts.git
VCS Type git
VCS Version indigo-devel
Last Updated 2016-02-05
Dev Status DEVELOPED
Released RELEASED

Packages

Name Version
rosparam_shortcuts 0.1.1

README

ROS Param Shortcuts

Quickly load variables from rosparam with good command line error checking.

This package enforces the philosophy that there should be no default parameters - everything must be defined by the user in yaml files (or launch files or where ever) otherwise your program should not run. This helps debug why something isn't working correctly - it will tell you exactly what rosparameters are missing.

Features: - Outputs all loaded data into consule using ROS_DEBUG, so you won't see it unless you turn it on - Namespaces all output within the parent_name - Great for having each class have its own parameter namespace - Helpful error messages if parameter is missing, explaining where it expects to find it - Removes lots of repetitious code - Supports datatypes that rosparam does not by default, such as std::size_t, ros::Duration, Eigen::Affine3d - Supports loading std::vectors easily, and debugging that data - Supports loading an entire list of bool parameters

Developed by Dave Coleman at the University of Colorado Boulder

Status:

  • Build Status Travis - Continuous Integration
  • Build Status ROS Buildfarm - Trusty Devel Source Build
  • Build Status ROS Buildfarm - AMD64 Trusty Debian Build

Install

Ubuntu Debian

sudo apt-get install ros-indigo-rosparam-shortcuts

Build from Source

To build this package, git clone this repo into a catkin workspace and be sure to install necessary dependencies by running the following command in the root of your catkin workspace:

rosdep install -y --from-paths src --ignore-src --rosdistro indigo

Code API

See Class Reference

Usage / Demo

See the file src/example.cpp for example code. To run:

roslaunch rosparam_shortcuts example.launch

Your yaml file would look something like the file config/example.yaml:

example:
  control_rate: 100.0 # double
  param1: 20 # int
  param2: 30 # size_t
  param3: 1 # ros::Duration
  param4: [1, 1, 1, 3.14, 0, 0] # Eigen::Affine3d - x, y, z, roll, pitch, yaw
  param5: [1.1, 2.2, 3.3, 4.4] # std::vector<double>

Include Note

Possible dependency issues - I'm not sure if this is always in issue or if there is an easy fix, but when including this package in another package you might need to add dependencies on Eigen throught that new package. This requires:

package.xml:

<build_depend>eigen</build_depend>
<run_depend>eigen</run_depend>

CMakeLists.txt:

find_package(catkin REQUIRED COMPONENTS
  cmake_modules
  ...
)
find_package(Eigen REQUIRED)
catkin_package(
  DEPENDS
    Eigen
)
include_directories(
  ${EIGEN_INCLUDE_DIRS}
)

If you have a fix for this, let me know!

Testing and Linting

To run roslint, use the following command with catkin-tools:

catkin build --no-status --no-deps --this --make-args roslint

To run catkin lint, use the following command with catkin-tools:

catkin lint -W2

There are currently no unit or integration tests for this package. If there were you would use the following command with catkin-tools:

catkin run_tests --no-deps --this -i

Contribute

Please send PRs for new helper functions, fixes, etc!