DS402Group.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 DS402GROUP_HPP
25 #define DS402GROUP_HPP
26 
27 namespace icl_hardware {
28 namespace canopen_schunk {
29 
30 template <typename NodeT>
31 DS301Node::Ptr DS402Group::addNode (const uint8_t node_id, const CanDevPtr can_device, HeartBeatMonitor::Ptr heartbeat_monitor)
32 {
33  LOGGING_INFO(CanOpen, "Adding new DS402Node with id " << node_id << endl);
34  DS301Node::Ptr node(new NodeT(node_id, can_device, heartbeat_monitor));
35  DS402Node::Ptr node_ds402 = boost::dynamic_pointer_cast<DS402Node>(node);
36  m_nodes.push_back(node);
37  m_ds402_nodes.push_back(node_ds402);
38  return node;
39 }
40 
41 }} //End of NS
42 
43 #endif
std::vector< DS402Node::Ptr > m_ds402_nodes
Definition: DS402Group.h:326
#define LOGGING_INFO(streamname, arg)
DS301Node::Ptr addNode(const uint8_t node_id, const CanDevPtr can_device, HeartBeatMonitor::Ptr heartbeat_monitor)
Creates a new node and adds it to the group.
Definition: DS402Group.hpp:31
unsigned char uint8_t
ThreadStream & endl(ThreadStream &stream)
std::vector< DS301Node::Ptr > m_nodes
Definition: DS301Group.h:161
Class that holds devices according to the DS402 (drives and motion control) specification.
Definition: DS402Node.h:43


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