Giter VIP home page Giter VIP logo

rviz2_plugin_ser2res's Introduction

rviz2_plugin_ser2res

rviz2_plugin_ser2res is a RViz plugin for resetting displays via service. This enables controllable updates of visualized messages, such as point clouds. More explanations for the usages will be provided soon.

Dependencies

Ubuntu 22.04

ROS2 Humble

Compilation

cd ~/ros2_ws/src
git clone https://github.com/ASIG-X/rviz2_plugin_ser2res
cd ..
colcon build --symlink-install --packages-select rviz2_plugin_ser2res

Usage

To use this plugin, please follow the steps below.

  1. Click on the โ€œ+โ€ button in the toolbar of RViz2.
  2. Select "ser2res" under "rviz2_plugin_ser2res".
  3. Reset all displays by using the following two methods:
  • Open a new terminal and run
ros2 service call /rviz2/reset_time std_srvs/srv/Empty
  • Alternatively, you can create a client in your code
rclcpp::Client<std_srvs::srv::Empty>::SharedPtr client = nh->create_client<std_srvs::srv::Empty>("/rviz2/reset_time");

and send a request

auto request = std::make_shared<std_srvs::srv::Empty::Request>();
auto result = client->async_send_request(request);
rclcpp::Rate rate(10);
while (!result.valid()) {
    rate.sleep();
}

Contributors

Ziyu Cao (email: [email protected])

Kailai Li (email: [email protected])

License

The source code is released under GPLv3 license.

We are constantly working on improving our code. For any technical issues, please contact Ziyu Cao ([email protected]).

rviz2_plugin_ser2res's People

Contributors

ateapot649 avatar kailaili avatar

Stargazers

 avatar  avatar  avatar

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.