Skip to content

Commit

Permalink
Review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
msz-rai committed Feb 28, 2024
1 parent f301b52 commit 02e49ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions Assets/AWSIM/Scripts/Sensors/LiDAR/RglLidarPublisher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,11 @@ public override void OnValidate()
}

// To enable/disable subgraph apply desired state to both nodes
publisherSubgraph?.SetActive(FormatNodeId, publish);
publisherSubgraph?.SetActive(PublishNodeId, publish);
if (publisherSubgraph != null)
{
publisherSubgraph.SetActive(FormatNodeId, publish);
publisherSubgraph.SetActive(PublishNodeId, publish);
}
}

public override void Initialize(RGLNodeSequence parentSubgraph, string frameId, RglQos qos)
Expand Down
4 changes: 2 additions & 2 deletions docs/Components/Sensors/LiDARSensor/LiDARSensor/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ Currently, `RglLidarPublisher` implements ROS2 publishers for two message types:
- [sensor_msgs/PointCloud2](https://docs.ros2.org/latest/api/sensor_msgs/msg/PointCloud2.html)
- [radar_msgs/RadarScan](http://docs.ros.org/en/noetic/api/radar_msgs/html/msg/RadarScan.html)

`PointCloud2` message allows publishing of the point cloud with different points attributes (described by `fields` parameter). In order to easily select different frequently used field sets `RglLidarPublisher` have several field presets defined:
`PointCloud2` message allows publishing point clouds with different points attributes (described by `fields` parameter). In order to easily select different frequently used field sets `RglLidarPublisher` has several field presets defined:

| Preset | Description | Fields |
| :--------: | :--------------------- | :---------------------------------- |
Expand Down Expand Up @@ -178,7 +178,7 @@ Currently, `RglLidarPublisher` implements ROS2 publishers for two message types:
- `Publish` - If false, publishing will be stopped

!!! note "Elements configurable in simulation runtime"
Once the simulation starts, only the `Publish` flag is handled. All of the publishers are initialized on the simulation startup and updates of their parameters are not supported in runtime.
Once the simulation starts, only the `Publish` flag is handled. All of the publishers are initialized on the simulation startup and updates of their parameters are not supported in runtime. Any changes to the publishing configuration are ignored.

#### Default Publishing Topics
- Frequency: `10Hz`
Expand Down

0 comments on commit 02e49ef

Please sign in to comment.