Skip to content

[Galactic Backport Issue] AttributeError: 'BasicNavigator' object has no attribute 'smoother_client' #2980

@m2-farzan

Description

@m2-farzan

Bug report

Required Info:

  • Operating System:
    • Ubuntu 20.04
  • ROS2 Version:
    • Galactic (from source)
  • Version or commit hash:
  • DDS implementation:
    • Fast-RTPS

Steps to reproduce issue

#!/bin/python3

import rclpy
from nav2_simple_commander.robot_navigator import BasicNavigator

rclpy.init()
nav = BasicNavigator()
nav.destroyNode()

Expected behavior

Exit cleanly

Actual behavior

Traceback (most recent call last):
  File "a.py", line 8, in <module>
    nav.destroyNode()
  File "/root/ros2_galactic_overlay/install/lib/python3.8/site-packages/nav2_simple_commander/robot_navigator.py", line 91, in destroyNode
    self.destroy_node()
  File "/root/ros2_galactic_overlay/install/lib/python3.8/site-packages/nav2_simple_commander/robot_navigator.py", line 100, in destroy_node
    self.smoother_client.destroy()
AttributeError: 'BasicNavigator' object has no attribute 'smoother_client'

Additional information

This has to do with partial backporting. #2940 backports #2924 which partially relied on #2881. But #2881 is not backported to galactic. Assuming #2881 can't be backported for some good reason, I'll make a PR that solves this by removing the extra reference in #2924.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions