Skip to content

Commit

Permalink
Merge branch 'master' into fix/failed/hw/initialization/logs
Browse files Browse the repository at this point in the history
  • Loading branch information
saikishor authored Aug 27, 2024
2 parents 3a8f949 + d200408 commit 167e1b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion controller_manager/src/ros2_control_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ int main(int argc, char ** argv)
// A simple way to reject non ros args
continue;
}
RCLCPP_INFO(rclcpp::get_logger("CM args"), "Adding argument: %s", argv[i]);
node_arguments.push_back(argv[i]);
}
cm_node_options.arguments(node_arguments);
Expand Down
4 changes: 4 additions & 0 deletions ros2controlcli/ros2controlcli/verb/list_controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ def main(self, *, args):
with NodeStrategy(args) as node:
response = list_controllers(node, args.controller_manager)

if not response.controller:
print("No controllers are currently loaded!")
return 0

# Structure data as table for nicer output
col_width_name = max(len(ctrl.name) for ctrl in response.controller)
col_width_type = max(len(ctrl.type) for ctrl in response.controller)
Expand Down

0 comments on commit 167e1b2

Please sign in to comment.