Skip to content

Commit

Permalink
linty
Browse files Browse the repository at this point in the history
  • Loading branch information
InvincibleRMC committed Apr 16, 2024
1 parent 332fe07 commit c0d08bd
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion launch/demo_pub_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ def generate_launch_description() -> LaunchDescription:
Launches bridge_node.
"""

config = os.path.join(
get_package_share_directory('mqtt_ros_bridge'),
'config',
Expand Down
1 change: 0 additions & 1 deletion launch/demo_sub_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ def generate_launch_description() -> LaunchDescription:
Launches bridge_node.
"""

config = os.path.join(
get_package_share_directory('mqtt_ros_bridge'),
'config',
Expand Down
2 changes: 1 addition & 1 deletion mqtt_ros_bridge/bridge_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def __init__(self, args: list[str]) -> None:
super().__init__('mqtt_bridge_node')

# TODO get from parameters
DEBUG = True
# DEBUG = True

print(args)

Expand Down
5 changes: 2 additions & 3 deletions mqtt_ros_bridge/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@


def lookup_message(object_path: str, package: str = 'mqtt_ros_bridge') -> MsgLike:
""" lookup message from a some.module:object_name specification. """

"""Lookup message from a some.module:object_name specification."""
return cast(MsgLike, _lookup_object(object_path, package))


def _lookup_object(object_path: str, package: str = 'mqtt_ros_bridge') -> object:
""" lookup object from a some.module:object_name specification. """
"""Lookup object from a some.module:object_name specification."""
module_name, obj_name = object_path.split(":")
module = import_module(module_name, package)
obj = getattr(module, obj_name)
Expand Down

0 comments on commit c0d08bd

Please sign in to comment.