clang-format
This commit is contained in:
parent
18d2772cef
commit
6eee02bacc
17 changed files with 1299 additions and 1346 deletions
|
@ -2,13 +2,10 @@
|
|||
|
||||
namespace env_interface
|
||||
{
|
||||
class EnvInterface : public EnvInterfaceBase
|
||||
{
|
||||
public:
|
||||
EnvInterface() = default;
|
||||
virtual ~EnvInterface() = default;
|
||||
|
||||
};
|
||||
} // namespace env_interface
|
||||
|
||||
|
||||
class EnvInterface : public EnvInterfaceBase
|
||||
{
|
||||
public:
|
||||
EnvInterface() = default;
|
||||
virtual ~EnvInterface() = default;
|
||||
};
|
||||
} // namespace env_interface
|
||||
|
|
|
@ -1,38 +1,40 @@
|
|||
#include "rclcpp/rclcpp.hpp"
|
||||
#include "rclcpp_lifecycle/lifecycle_node.hpp"
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
namespace env_interface
|
||||
{
|
||||
|
||||
using CallbackReturn = rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn;
|
||||
|
||||
// template <typename A_space, typename S_space>
|
||||
class EnvInterfaceBase : public rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface
|
||||
{
|
||||
public:
|
||||
EnvInterfaceBase() = default;
|
||||
EnvInterfaceBase() = default;
|
||||
|
||||
virtual ~EnvInterfaceBase() = default;
|
||||
virtual ~EnvInterfaceBase() = default;
|
||||
|
||||
virtual CallbackReturn init(
|
||||
const std::string& t_env_name,
|
||||
const std::string & t_namespace = "",
|
||||
const rclcpp::NodeOptions & t_node_options = rclcpp::NodeOptions()
|
||||
);
|
||||
virtual CallbackReturn init(const std::string& t_env_name, const std::string& t_namespace = "",
|
||||
const rclcpp::NodeOptions& t_node_options = rclcpp::NodeOptions());
|
||||
|
||||
const rclcpp_lifecycle::State& configure();
|
||||
const rclcpp_lifecycle::State& configure();
|
||||
|
||||
virtual CallbackReturn on_init() = 0;
|
||||
virtual CallbackReturn on_init() = 0;
|
||||
|
||||
std::shared_ptr<rclcpp_lifecycle::LifecycleNode> getNode();
|
||||
std::shared_ptr<rclcpp_lifecycle::LifecycleNode> getNode() const;
|
||||
std::shared_ptr<rclcpp_lifecycle::LifecycleNode> getNode();
|
||||
std::shared_ptr<rclcpp_lifecycle::LifecycleNode> getNode() const;
|
||||
|
||||
const rclcpp_lifecycle::State & getState() const;
|
||||
const rclcpp_lifecycle::State& getState() const;
|
||||
|
||||
// virtual void setActionSpace(const A_space& action, const std::size_t& size);
|
||||
|
||||
protected:
|
||||
// A_space action_space;
|
||||
// S_space observation_space;
|
||||
|
||||
|
||||
private:
|
||||
std::shared_ptr<rclcpp_lifecycle::LifecycleNode> m_node;
|
||||
|
||||
|
||||
std::shared_ptr<rclcpp_lifecycle::LifecycleNode> m_node;
|
||||
};
|
||||
} // namespace env_interface
|
||||
} // namespace env_interface
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue