From f9aee8ad50df8c9a595452b1beec9a9f37c54f37 Mon Sep 17 00:00:00 2001
From: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com>
Date: Sun, 20 Apr 2025 23:20:30 -0600
Subject: [PATCH] Simplify deps install and build
* Use rosdep for deps
* Use CMake for build workflow
Signed-off-by: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com>
---
README.md | 13 ++++++-------
package.xml | 2 +-
2 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/README.md b/README.md
index 2c4a20d..a392038 100644
--- a/README.md
+++ b/README.md
@@ -9,9 +9,9 @@ This repository contains the [ArduPilot Dataflash](https://ardupilot.org/copter/
To build any plugin for PlotJuggler, PlotJuggler must be installed on your system.
For detailed instructions on how to install PlotJuggler please have a look at the [Installation](https://github.com/facontidavide/PlotJuggler#installation) section of the PlotJuggler repository.
-If you have ROS installed, you can install PlotJuggler using:
+If you have ROS installed and use rosdep, you can install dependencies automatically:
- sudo apt install ros-$ROS_DISTRO-plotjuggler-ros
+ rosdep install --from-paths . --ignore-src
## (Optional) Build plotjuggler-apbin-plugin
@@ -59,13 +59,12 @@ Once compilation is finished, you will find your `.so` plugin in the `artifacts`
2. If you want the units to be displayed in PlotJuggler (read at the end), you need to edit `dataload_apbin.cpp` and activate `#define LABEL_WITH_UNIT`.
-3. Compile using cmake:
+3. Compile and install using CMake:
```
- mkdir build; cd build
- cmake ..
- make
- sudo make install
+ cmake -B build
+ cmake --build build
+ sudo cmake --install build
```
## Install plotjuggler-apbin-plugin
diff --git a/package.xml b/package.xml
index b559f2a..97a27bd 100644
--- a/package.xml
+++ b/package.xml
@@ -13,7 +13,7 @@
catkin
ament_cmake
-
+ plotjuggler_ros
plotjuggler