abstract_motor_driver.cpp
Go to the documentation of this file.
1 /*
2  abstract_motor_driver.cpp
3  Copyright (C) 2020 Niryo
4  All rights reserved.
5  This program is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13  You should have received a copy of the GNU General Public License
14  along with this program. If not, see <http:// www.gnu.org/licenses/>.
15 */
16 
18 
19 #include <memory>
20 #include <sstream>
21 #include <string>
22 #include <utility>
23 #include <vector>
24 
25 using ::std::shared_ptr;
26 
27 namespace ttl_driver
28 {
29 
35 AbstractMotorDriver::AbstractMotorDriver(shared_ptr<dynamixel::PortHandler> portHandler, shared_ptr<dynamixel::PacketHandler> packetHandler)
36  : AbstractTtlDriver(std::move(portHandler), std::move(packetHandler))
37 {
38 }
39 
44 std::string AbstractMotorDriver::str() const { return "Motor Driver (" + AbstractTtlDriver::str() + ")"; }
45 
46 } // namespace ttl_driver
ttl_driver::AbstractTtlDriver::str
virtual std::string str() const
AbstractTtlDriver::str : build a string describing the object. For debug purpose only.
Definition: abstract_ttl_driver.cpp:98
abstract_motor_driver.hpp
ttl_driver
Definition: abstract_dxl_driver.hpp:30
ttl_driver::AbstractMotorDriver::str
std::string str() const override
AbstractMotorDriver::str.
Definition: abstract_motor_driver.cpp:44
ttl_driver::AbstractMotorDriver::AbstractMotorDriver
AbstractMotorDriver()=default


ttl_driver
Author(s): Clement Cocquempot
autogenerated on Wed May 21 2025 08:30:14