Skip to content

Sam/add laser lines#4

Open
sambertibus99 wants to merge 2 commits intomainfrom
sam/add-laser-lines
Open

Sam/add laser lines#4
sambertibus99 wants to merge 2 commits intomainfrom
sam/add-laser-lines

Conversation

@sambertibus99
Copy link

This pull request primarily implements two new features:

  1. Segmentation Function

The laser_scan_integrator node has been extended with a segmentation function.
The function can be activated via a service call. An example call is:

ros2 service call /robotinobase1/toggle_segmentation laser_scan_integrator_msg/srv/ToggleSegmentation "{enable_segmentation: true}"

Once the service is activated, segmented lines are published on the topic /robotinobase1/line_segments.

  1. Mapper Node

A new node called mapper has been added.
This node subscribes to the line_segments topic and checks whether segmented lines can be assigned to a machine.
The mapper node currently only starts if the launch argument start_mapper is set to true:

ros2 launch integrated_scan.launch.py start_mapper:=true

If the launch file is not used, the node can also be started separately, for example via:

ros2 run laser_scan_mapper mapper --ros-args --remap __ns:=/robotinobase4 -p frameID:=robotinobase4 -p use_sim_time:=true -p position_tolerance:=0.3 -p angle_tolerance:=0.5 -p machine_names:="['M-DS','M-SS','M-BS','M-CS1','M-CS2','M-RS1','M-RS2','C-DS','C-BS','C-SS','C-RS1','C-RS2','C-CS1','C-CS2']"

Copy link

@MatteoTschesche MatteoTschesche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the work. Here is some feedback. Still need to read everything fully.

Value: true
map:
Value: true
robotinobase4/base_link:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only works for robotino4!

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hab die datei gelöscht

{}
WAIT4:
{}
robotinobase4/odom:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hab die datei gelöscht

declare_integratedtopic_argument = DeclareLaunchArgument(
"integratedTopic",
default_value="/robotinobase1/scan",
default_value="/robotinobase2/scan",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here, this needs to be done via workspaces i guess

)
declare_integratedframe_argument = DeclareLaunchArgument(
"integratedFrameId", default_value="robotinobase1/laser_link", description="Integrated Frame ID"
"integratedFrameId", default_value="robotinobase2/laser_link", description="Integrated Frame ID"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and here

declare_position_tolerance_argument = DeclareLaunchArgument(
"position_tolerance",
default_value="0.3",
default_value="1",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this between robot and scanned line or between scanned line and map position?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make this clear in the description please

*line_cluster_index = *tmp_index;
RCLCPP_INFO(this->get_logger(),
"tmp_index (Anzahl: %zu):", tmp_index->indices.size());
for (std::size_t i = 0; i < tmp_index->indices.size(); ++i) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you also need to delete the loop

@sambertibus99 sambertibus99 force-pushed the sam/add-laser-lines branch 5 times, most recently from 5ce5891 to 0d4c6bb Compare January 31, 2026 18:49
- Implement LookUp for faster mapping of laser segments to machines
- Add rolling average for corrected TF transformations
- Add laser TFs for MPS parts
- Fix launch file configuration for mapper node
- Add offset configuration parameters
- Clean up logging statements

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants