Skip to content

Commit

Permalink
Merge branch 'main' into chore/pointpainting_launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
knzo25 authored Feb 20, 2024
2 parents 81a84ca + c67bbe7 commit 86c192f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions perception/lidar_apollo_instance_segmentation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ None
| `use_constant_feature` | bool | false | The flag to use direction and distance feature of pointcloud. |
| `target_frame` | string | "base_link" | Pointcloud data is transformed into this frame. |
| `z_offset` | int | 2 | z offset from target frame. [m] |
| `build_only` | bool | `false` | shutdown the node after TensorRT engine file is built |

## Assumptions / Known limits

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<arg name="input/pointcloud" default="/sensing/lidar/pointcloud"/>
<arg name="model" default="model_128"/>
<arg name="output/objects" default="labeled_clusters"/>
<arg name="build_only" default="false" description="shutdown node after TensorRT engine file is built"/>

<arg if="$(eval &quot;'$(var model)'=='model_16'&quot;)" name="base_name" default="vlp-16"/>
<arg if="$(eval &quot;'$(var model)'=='model_64'&quot;)" name="base_name" default="hdl-64"/>
Expand All @@ -24,5 +25,8 @@
<param name="precision" value="$(var precision)"/>
<param name="target_frame" value="$(var target_frame)"/>
<param from="$(var param_file)"/>

<!-- This parameter shall NOT be included in param file. -->
<param name="build_only" value="$(var build_only)"/>
</node>
</launch>
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ LidarApolloInstanceSegmentation::LidarApolloInstanceSegmentation(rclcpp::Node *
return;
}

if (node_->declare_parameter("build_only", false)) {
RCLCPP_INFO(node_->get_logger(), "TensorRT engine is built and shutdown node.");
rclcpp::shutdown();
}

// GPU memory allocation
const auto input_dims = trt_common_->getBindingDimensions(0);
const auto input_size =
Expand Down

0 comments on commit 86c192f

Please sign in to comment.