Skip to content

Commit

Permalink
Fix formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
destogl committed Aug 15, 2024
1 parent c79f9bc commit b01655a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 2 additions & 5 deletions controller_manager/controller_manager/spawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class bcolors:
def first_match(iterable, predicate):
return next((n for n in iterable if predicate(n)), None)


def combine_name_and_namespace(name_and_namespace):
node_name, namespace = name_and_namespace
return namespace + ("" if namespace.endswith("/") else "/") + node_name
Expand Down Expand Up @@ -287,11 +288,7 @@ def main(args=None):
)
return 1
node.get_logger().info(
bcolors.OKBLUE
+ "Loaded "
+ bcolors.BOLD
+ controller_name
+ bcolors.ENDC
bcolors.OKBLUE + "Loaded " + bcolors.BOLD + controller_name + bcolors.ENDC
)

if not args.load_only:
Expand Down
3 changes: 1 addition & 2 deletions controller_manager/test/controller_manager_test_common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ class ControllerManagerFixture : public ::testing::Test
public:
explicit ControllerManagerFixture(
const std::string & robot_description = ros2_control_test_assets::minimal_robot_urdf,
const bool & pass_urdf_as_parameter = false,
const std::string & cm_namespace = "")
const bool & pass_urdf_as_parameter = false, const std::string & cm_namespace = "")
: robot_description_(robot_description), pass_urdf_as_parameter_(pass_urdf_as_parameter)
{
executor_ = std::make_shared<rclcpp::executors::SingleThreadedExecutor>();
Expand Down

0 comments on commit b01655a

Please sign in to comment.