Skip to content

Commit 057da30

Browse files
authored
Merge pull request #896 from JuliaRobotics/22Q3/docs/ros_typegen
Update using_ros.md
2 parents 78c37a3 + 3fe0d38 commit 057da30

2 files changed

Lines changed: 15 additions & 4 deletions

File tree

docs/src/examples/using_pcl.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Pointclouds and PCL Types
1+
# [Pointclouds and PCL Types](@id pointclouds_and_pcl)
22

3-
## Introduction Caesar._PCL
3+
## Introduction `Caesar._PCL`
44

55
A wide ranging and well used [point cloud library exists called PCL](https://pointclouds.org/) which is implemented in C++. To get access to many of those features and bridge the Caesar.jl suite of packages, the base `PCL.PointCloud` types have been implemented in Julia and reside under `Caesar._PCL`. The main types of interest:
66
- [`Caesar._PCL.PointCloud`](@ref),

docs/src/examples/using_ros.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,21 @@ Distributed.@everywhere using PyCall
5353

5454
Caesar.jl has native by optional package tools relating to RobotOS.jl (leveraging [Requires.jl](https://github.com/JuliaPackaging/Requires.jl)):
5555
```julia
56-
using RobotOS, Caesar
57-
Distributed.@everywhere using Caesar
56+
using RobotOS
57+
58+
@rosimport sensor_msgs.msg: PointCloud2
59+
60+
rostypegen()
61+
62+
using Colors, Caesar
63+
Distributed.@everywhere using Colors, Caesar
5864
```
5965

66+
Colors.jl is added as a conditional requirement to get `Caesar._PCL.PointCloud` support ([see PCL page here](@ref pointclouds_and_pcl)).
67+
68+
!!! note
69+
Imports and type generation is necessary for RobotOS and Caesar to work properly.
70+
6071
## Prepare Any Outer Objects
6172

6273
Usually a factor graph or detectors, or some more common objects are required. For the example lets just say a basic SLAMWrapper containing a regular `fg=initfg()`:

0 commit comments

Comments
 (0)