DS301Group.hpp
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 // This file is part of the SCHUNK Canopen Driver suite.
5 //
6 // This program is free software licensed under the LGPL
7 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
8 // You can find a copy of this license in LICENSE folder in the top
9 // directory of the source code.
10 //
11 // © Copyright 2016 SCHUNK GmbH, Lauffen/Neckar Germany
12 // © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
13 // -- END LICENSE BLOCK ------------------------------------------------
14 
15 //----------------------------------------------------------------------
22 //----------------------------------------------------------------------
23 
24 #ifndef DS301GROUP_HPP
25 #define DS301GROUP_HPP
26 
27 namespace icl_hardware {
28 namespace canopen_schunk {
29 
30 template <typename NodeT>
31 DS301Node::Ptr DS301Group::addNode(const uint8_t node_id, const CanDevPtr can_device, HeartBeatMonitor::Ptr heartbeat_monitor)
32 {
33  LOGGING_INFO(CanOpen, "Adding new DS301Node with id " << node_id << endl);
34  DS301Node::Ptr node(new NodeT(node_id, can_device, heartbeat_monitor));
35  m_nodes.push_back(node);
36  return node;
37 }
38 
39 }} //End of NS
40 
41 #endif
#define LOGGING_INFO(streamname, arg)
unsigned char uint8_t
ThreadStream & endl(ThreadStream &stream)
std::vector< DS301Node::Ptr > m_nodes
Definition: DS301Group.h:161
DS301Node::Ptr addNode(const uint8_t node_id, const CanDevPtr can_device, HeartBeatMonitor::Ptr heartbeat_monitor)
Creates a new DS301Node and adds it to the group-.
Definition: DS301Group.hpp:31


schunk_canopen_driver
Author(s): Felix Mauch , Georg Heppner
autogenerated on Mon Jun 10 2019 15:07:49