Skip to content
Snippets Groups Projects
Commit b998a49f authored by René Ebeling's avatar René Ebeling
Browse files

Add usb_port parameter declaration in serial_to_pcl_node

parent 8a10e5ba
Branches
No related tags found
No related merge requests found
......@@ -120,6 +120,7 @@ Make sure to connect the **SCL** and **SDA** lines for I2C communication, as wel
performance.
## How It Works
-
```bash
ros2 run serial_to_pcl serial_to_pcl_node
```
......
......@@ -31,7 +31,8 @@ class SerialListPublisher(Node):
super().__init__('serial_to_pcl_node') # Initialize the ROS 2 node with a name
self.declare_parameter('parent_frame', 'vl53l7cx_link') # Declare a parameter for the parent frame
self.parent_frame = self.get_parameter('parent_frame').get_parameter_value().string_value # Get the parameter value
self.declare_parameter('usb_port', serial_port)
serial_port = self.get_parameter('usb_port').get_parameter_value().string_value
# Create a publisher for PointCloud2 messages
self.pcd_publisher = self.create_publisher(PointCloud2, 'pcl', 10)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment