-

Package Summary

Tags No category tags.
Version 0.0.2
License BSD-3-Clause
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/tuw-robotics/tuw_robotics.git
VCS Type git
VCS Version jazzy
Last Updated 2024-12-06
Dev Status MAINTAINED
CI status No Continuous Integration
Released UNRELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

TUW Utils

Additional Links

No additional links.

Maintainers

  • Markus Bader

Authors

No additional authors.

tuw_ros2

Utils for ros2 such as an enhanced base class node. The content is header only.

tuw::Node

usage

#ifndef MY_PKG__MYNODE_HPP_
#define MY_PKG__MYNODE_HPP_

#include <memory>
#include <tuw_ros2_utils/node.hpp>

class MyNode : public tuw::Node
{
    int loop_rate_;
    double threshold_;
    std::string frame_id_;
public:
    MyNode(const std::string &node_name): Node(node_name){
        declare_parameters();
        read_static_parameters();
        read_dynamic_parameters();
    }

    void declare_parameters(){
        declare_parameters_with_description("loop_rate", 5, "loop rate in seconds");
        declare_parameters_with_description("threshold", 1.5, "threshold [m]", 0.0, 10.0, 0.01);
        declare_parameters_with_description("frame_id", "map", "map frame");
    }
    void read_static_parameters(){
        get_parameter_and_log("loop_rate", loop_rate_);
    }                  
    bool read_dynamic_parameters(){
        static bool first_call = true;                     /// to identify the first call
        bool changes = false;                              /// used to identify changes
        update_parameter_and_log("threshold", threshold_); /// updates threshold_ 
        update_parameter_and_log("frame_id", frame_id_);   /// updates frame_id_ 
        first_call = false;                                /// after the first all the varibale stays on false
        return changes;
    }
}
#endif // TUW_GRAPH_GENERATOR__GRAPH_SPLIT_HPP_

CHANGELOG

Changelog for package tuw

0.0.2 (2024-11-28)

  • first commit tuw_debug removed ament export fixed viz added shape array plugin added minor pose rviz plugin added rviz header barrier updated header uodate code formated namespace fixed ready for release first commit tuw_debug removed ament export fixed viz added shape array plugin added minor pose rviz plugin added rviz header barrier updated header uodate code formated namespace fixed ready for release
  • Contributors: Markus Bader

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

Name Deps
tuw_robotics

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged tuw at Robotics Stack Exchange