Program Listing for File master_driver.hpp

Return to documentation for file (/tmp/ws/src/ros2_canopen/canopen_master_driver/include/canopen_master_driver/master_driver.hpp)

//    Copyright 2022 Harshavadan Deshpande
//                   Christoph Hellmann Santos
//
//    Licensed under the Apache License, Version 2.0 (the "License");
//    you may not use this file except in compliance with the License.
//    You may obtain a copy of the License at
//
//        http://www.apache.org/licenses/LICENSE-2.0
//
//    Unless required by applicable law or agreed to in writing, software
//    distributed under the License is distributed on an "AS IS" BASIS,
//    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//    See the License for the specific language governing permissions and
//    limitations under the License.
#ifndef MASTER_DRIVER_HPP
#define MASTER_DRIVER_HPP

#include "canopen_core/master_node.hpp"
#include "canopen_master_driver/node_interfaces/node_canopen_basic_master.hpp"

namespace ros2_canopen
{
class MasterDriver : public ros2_canopen::CanopenMaster
{
  std::shared_ptr<node_interfaces::NodeCanopenBasicMaster<rclcpp::Node>> node_canopen_basic_master_;

public:
  explicit MasterDriver(const rclcpp::NodeOptions & node_options);
};

}  // namespace ros2_canopen

#endif