Skip to content

Commit

Permalink
tweaking comments
Browse files Browse the repository at this point in the history
  • Loading branch information
brettpac committed Dec 10, 2024
1 parent 11a3859 commit d8fe8c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,22 @@
// Declare the namespace for the client library.
namespace cl_nav2z
{
// Declare Client class, inherit from SmaccActionClientBase with the action type NavigateToPose.
// Declare Client class, inherit from SmaccActionClientBase template with default action argument.
class ClNav2Z
: public smacc2::client_bases::SmaccActionClientBase<nav2_msgs::action::NavigateToPose>
{
public:
// Bring the SmaccActionClientBase types into the current scope.
using smacc2::client_bases::SmaccActionClientBase<nav2_msgs::action::NavigateToPose>::GoalHandle;
using smacc2::client_bases::SmaccActionClientBase<
nav2_msgs::action::NavigateToPose>::ResultCallback;
using smacc2::client_bases::SmaccActionClientBase<nav2_msgs::action::NavigateToPose>::ResultCallback;

// Define "SmaccNavigateResultSignal" as a SmaccSignal that points to the WrappedResult type of SmaccActionClientBase.
typedef smacc2::SmaccSignal<void(const WrappedResult &)> SmaccNavigateResultSignal;

// Declare Client constructor with string set to the right ROS action.
// Declare Client class constructor with string set to the right ROS action.
ClNav2Z(std::string navigateToPoseAction = "/navigate_to_pose");

// Declare Client destructor
// Declare Client class destructor.
virtual ~ClNav2Z();
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,16 @@ namespace cl_nav2z
typedef smacc2::client_bases::SmaccActionClientBase<nav2_msgs::action::NavigateToPose> Base;
typedef Base::WrappedResult WrappedResult;

// Define Client constructor.
// Define Client class constructor.
ClNav2Z::ClNav2Z(std::string moveBaseName) : Base(moveBaseName)
{
// RCLCPP_INFO(getLogger(),"Smacc Move Base Action Client");
}

// Define Client destructor.
// Define Client class destructor.
ClNav2Z::~ClNav2Z() {}


} // namespace cl_nav2z

// Export the ClNav2Z class as type smacc2::ISmaccClient as an implementation of the ISmaccClient interface.
Expand Down

0 comments on commit d8fe8c9

Please sign in to comment.