Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Documentation] "How to" Tracker #4

Closed
guilyx opened this issue Jun 9, 2020 · 0 comments
Closed

[Documentation] "How to" Tracker #4

guilyx opened this issue Jun 9, 2020 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@guilyx
Copy link
Member

guilyx commented Jun 9, 2020

Create ROS2 Package

source /opt/ros/eloquent/setup.bash
ros2 pkg create --build-type ament_python realtime_statistics

Installation

RT Pendulum Demo

First, get and set the pendulum package here : https://github.com/ros2-realtime-demo/pendulum

$ source /opt/ros/eloquent/setup.bash
$ mkdir -p ~/pendulum_ws/src
$ cd ~/pendulum_ws/src
$ git clone https://github.com/ros2-realtime-demo/pendulum
$ cd ~/pendulum_ws
$ sudo rosdep init
$ rosdep update
$ rosdep install -q -y --from-paths src --ignore-src --rosdistro eloquent
$ colcon build --merge-install # OR colcon build --symlink-install

Then try and run some of these : https://github.com/ros2-realtime-demo/pendulum/blob/eloquent/docs/real_time_tutorial.md

RealTime Statistics

$ mkdir -p ~/rt_stats_ws
$ git clone https://github.com/MasterERTS/ros2_realtime_statistics.git
$ colcon build --symlink-install
$ . install/setup.bash # or setup.zsh if on zsh

Run

Terminal 1 :

$ cd ~/pendulum_ws
$ . install/setup.bash
$ ros2 run pendulum_demo pendulum_demo --priority 80 --pub-stats

Terminal 2 :

$ cd ~/pendulum_ws
$ install/setup.bash
$ ros2 run pendulum_manager pendulum_manager
press 0 to activate all nodes

Terminal 3 :

$ cd ~/rt_stats_ws
$ . install/setup.bash
$ ros2 run realtime_statistics write_json
leave it open for as long as you want then close it

Terminal 4 :

$ cd ~/rt_stats_ws
$ . install/setup.bash
$ ros2 run realtime_statistics plot_json
@guilyx guilyx added the documentation Improvements or additions to documentation label Jun 9, 2020
@guilyx guilyx pinned this issue Jun 9, 2020
@guilyx guilyx closed this as completed Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant