Skip to content

Commit 942dcf4

Browse files
authored
Merge pull request #23 from leggedrobotics/feature/remove_jsk_dep
remove jsk dependency
2 parents a3b63d9 + b39fd90 commit 942dcf4

File tree

16 files changed

+137
-430
lines changed

16 files changed

+137
-430
lines changed

README.md

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -183,25 +183,6 @@ sudo apt install libmpfr-dev
183183
sudo apt install libboost-all-dev
184184
```
185185

186-
#### PCL (for ANYmal research users)
187-
188-
PCL is required, but the ANYbotics distributed version does not contain visualization components. With pcl_visualization_catkin, the missing
189-
components are provided into your catkin workspace (for pcl 1.10). Additionally vtk7 is required, DO NOT install this on the ANYmal onboard
190-
PCs, only on OPC and simulation PCs.
191-
192-
```bash
193-
sudo apt install libvtk7-dev
194-
catkin build pcl_visualization_catkin
195-
```
196-
197-
#### JSK-visualization
198-
199-
For rviz-visualization the jsk-library is used.
200-
201-
```bash
202-
sudo apt-get install ros-noetic-jsk-visualization
203-
```
204-
205186
## Usage
206187

207188
### Build
@@ -326,12 +307,12 @@ The plane segmentation node publishes the following:
326307

327308
A grid map message to visualize the segmentation and some intermediate results. This information is also part of **`planar_terrain`**.
328309

329-
* **`boundaries`** ([jsk_recognition_msgs/PolygonArray])
310+
* **`boundaries`** ([visualization_msgs/MarkerArray])
330311

331312
A set of polygons that trace the boundaries of the segmented region. Holes and boundaries of a single region are published as separate
332-
polygons with the same label.
313+
markers with the same color.
333314

334-
* **`insets`** ([jsk_recognition_msgs/PolygonArray])
315+
* **`insets`** ([visualization_msgs/PolygonArray])
335316

336317
A set of polygons that are at a slight inward offset from **`boundaries`**. There might be more insets than boundaries since the inward
337318
shift can cause a single region to break down into multiple when narrow passages exist.

elevation_mapping_cupy/rviz/turtle_segmentation_example.rviz

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -200,20 +200,14 @@ Visualization Manager:
200200
Use Fixed Frame: true
201201
Use rainbow: true
202202
Value: false
203-
- Alpha: 1
204-
Class: jsk_rviz_plugin/PolygonArray
205-
Color: 25; 255; 0
203+
- Class: rviz/MarkerArray
206204
Enabled: true
205+
Marker Topic: /convex_plane_decomposition_ros/boundaries
207206
Name: PlaneBoundaries
208-
Queue Size: 10
209-
Topic: /convex_plane_decomposition_ros/boundaries
210-
Unreliable: false
207+
Namespaces:
208+
"": true
209+
Queue Size: 100
211210
Value: true
212-
coloring: Label
213-
enable lighting: true
214-
normal length: 0.10000000149011612
215-
only border: true
216-
show normal: false
217211
- Alpha: 1
218212
Autocompute Intensity Bounds: true
219213
Class: grid_map_rviz_plugin/GridMap

plane_segmentation/convex_plane_decomposition_ros/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ set(CATKIN_PACKAGE_DEPENDENCIES
99
grid_map_cv
1010
grid_map_msgs
1111
geometry_msgs
12-
jsk_recognition_msgs
1312
convex_plane_decomposition
1413
convex_plane_decomposition_msgs
1514
tf2_ros
15+
visualization_msgs
1616
)
1717

1818
find_package(catkin REQUIRED COMPONENTS
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
#pragma once
22

33
#include <geometry_msgs/PolygonStamped.h>
4-
5-
#include <jsk_recognition_msgs/PolygonArray.h>
4+
#include <visualization_msgs/Marker.h>
5+
#include <visualization_msgs/MarkerArray.h>
66

77
#include <convex_plane_decomposition/PlanarRegion.h>
88

99
namespace convex_plane_decomposition {
1010

1111
geometry_msgs::PolygonStamped to3dRosPolygon(const CgalPolygon2d& polygon, const Eigen::Isometry3d& transformPlaneToWorld,
12-
const std_msgs::Header& header);
12+
const std_msgs::Header& header);
1313

1414
std::vector<geometry_msgs::PolygonStamped> to3dRosPolygon(const CgalPolygonWithHoles2d& polygonWithHoles,
15-
const Eigen::Isometry3d& transformPlaneToWorld, const std_msgs::Header& header);
15+
const Eigen::Isometry3d& transformPlaneToWorld, const std_msgs::Header& header);
1616

17-
jsk_recognition_msgs::PolygonArray convertBoundariesToRosPolygons(const std::vector<PlanarRegion>& planarRegions,
18-
const std::string& frameId, grid_map::Time time);
17+
visualization_msgs::MarkerArray convertBoundariesToRosMarkers(const std::vector<PlanarRegion>& planarRegions, const std::string& frameId,
18+
grid_map::Time time, double lineWidth);
1919

20-
jsk_recognition_msgs::PolygonArray convertInsetsToRosPolygons(const std::vector<PlanarRegion>& planarRegions, const std::string& frameId,
21-
grid_map::Time time);
20+
visualization_msgs::MarkerArray convertInsetsToRosMarkers(const std::vector<PlanarRegion>& planarRegions, const std::string& frameId,
21+
grid_map::Time time, double lineWidth);
2222

2323
} // namespace convex_plane_decomposition

plane_segmentation/convex_plane_decomposition_ros/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
<depend>grid_map_cv</depend>
1717
<depend>grid_map_msgs</depend>
1818
<depend>geometry_msgs</depend>
19-
<depend>jsk_recognition_msgs</depend>
2019
<depend>convex_plane_decomposition</depend>
2120
<depend>convex_plane_decomposition_msgs</depend>
2221
<depend>tf2_ros</depend>
22+
<depend>visualization_msgs</depend>
2323

2424
<exec_depend>grid_map_demos</exec_depend>
2525

0 commit comments

Comments
 (0)