Skip to content

Commit

Permalink
Add sea-bass suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
AugusteBourgois committed Jan 6, 2025
1 parent bd7c608 commit 1a57dac
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
13 changes: 10 additions & 3 deletions example_external/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Example:
# Using parameters defined in another package

This package is a minimal example demonstrating how the parameters defined in `generate_parameter_library/example`
can be used in a different package (i.e. the current one : `generate_parameter_library/example_external`).

In particular, check the `CMakeLists.txt` file and the `#include` instructions in the source files.

## Build the node

Expand Down Expand Up @@ -93,7 +98,8 @@ You should see:
use_sim_time
```

All parameter are automatically declared and callbacks are setup by default. You can set a parameter by typing:
All parameters are automatically declared and callbacks are setup by default.
You can set a parameter by typing:

`ros2 param set /admittance_controller control.frame.id new_frame`

Expand All @@ -103,7 +109,8 @@ You should see:

Congratulations, you updated the parameter!

If you try to set a parameter that is read only, you will get an error. Running the following
If you try to set a parameter that is read only, you will get an error.
Running the following

`ros2 param set /admittance_controller command_interfaces ["velocity"]`

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 PickNik Inc.
// Copyright 2025 Forssea Robotics
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
Expand All @@ -10,7 +10,7 @@
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
//
// * Neither the name of the PickNik Inc. nor the names of its
// * Neither the name of Forssea Robotics nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
Expand Down
4 changes: 2 additions & 2 deletions example_external/src/minimal_publisher_external.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 PickNik Inc.
// Copyright 2025 Forssea Robotics
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
Expand All @@ -10,7 +10,7 @@
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
//
// * Neither the name of the PickNik Inc. nor the names of its
// * Neither the name of Forssea Robotics nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ template <typename... Args>
[[deprecated(
"When returning tl::expected<void, std::string> you can call fmt::format "
"directly.")]] auto
ERROR(const std::string& format, Args... args)
-> tl::expected<void, std::string> {
ERROR(const std::string& format,
Args... args) -> tl::expected<void, std::string> {
return tl::make_unexpected(fmt::format(format, args...));
}

Expand Down

0 comments on commit 1a57dac

Please # to comment.