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

Removed namespaced tf_static #43

Merged
merged 1 commit into from
Jan 18, 2024
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -166,25 +166,6 @@ def __init__(self, setup_path: str = '/etc/clearpath/') -> None:
namespace=self.namespace,
)

# Static transform from <namespace>/odom to odom
# See https://github.com/ros-controls/ros2_controllers/pull/533
self.tf_namespaced_odom_publisher = LaunchFile.get_static_tf_node(
name='namespaced_odom',
namespace=self.namespace,
parent_link='odom',
child_link=f'{self.namespace}/odom',
use_sim_time=False,
)

# Static transform from <namespace>/base_link to base_link
self.tf_namespaced_base_link_publisher = LaunchFile.get_static_tf_node(
name='namespaced_base_link',
namespace=self.namespace,
parent_link=f'{self.namespace}/base_link',
child_link='base_link',
use_sim_time=False,
)

# Components required for each platform
common_platform_components = [
self.wireless_watcher_node,
Expand Down Expand Up @@ -266,8 +247,4 @@ def generate_platform(self) -> None:
for component in self.platform_components[self.platform_model]:
platform_service_launch_writer.add(component)

if self.namespace not in ('', '/'):
platform_service_launch_writer.add(self.tf_namespaced_odom_publisher)
platform_service_launch_writer.add(self.tf_namespaced_base_link_publisher)

platform_service_launch_writer.generate_file()