Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the executor options and launch args to run with galactic. #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions LeGO-LOAM/launch/run.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@ def generate_launch_description():
# Tf transformations
transform_map = Node(
package='tf2_ros',
node_executable='static_transform_publisher',
node_name='camera_init_to_map',
executable='static_transform_publisher',
name='camera_init_to_map',
arguments=['0', '0', '0', '1.570795', '0', '1.570795', 'map', 'camera_init'],
)

transform_camera = Node(
package='tf2_ros',
node_executable='static_transform_publisher',
node_name='base_link_to_camera',
executable='static_transform_publisher',
name='base_link_to_camera',
arguments=['0', '0', '0', '-1.570795', '-1.570795', '0', 'camera', 'base_link'],
)

# LeGO-LOAM
lego_loam_node = Node(
package='lego_loam_sr',
node_executable='lego_loam_sr',
executable='lego_loam_sr',
output='screen',
parameters=[config_file],
remappings=[('/lidar_points', '/velodyne_points')],
Expand All @@ -48,8 +48,8 @@ def generate_launch_description():
# Rviz
rviz_node = Node(
package='rviz2',
node_executable='rviz2',
node_name='rviz2',
executable='rviz2',
name='rviz2',
arguments=['-d', rviz_config],
output='screen'
)
Expand Down
2 changes: 1 addition & 1 deletion LeGO-LOAM/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ int main(int argc, char** argv) {
RCLCPP_INFO(TF->get_logger(), "\033[1;32m---->\033[0m Started.");

// Use 4 threads
rclcpp::executors::MultiThreadedExecutor executor(rclcpp::executor::create_default_executor_arguments(), 4);
rclcpp::executors::MultiThreadedExecutor executor(rclcpp::ExecutorOptions(), 4);
executor.add_node(IP);
executor.add_node(FA);
executor.add_node(MO);
Expand Down