/home/runner/work/dynamixel_hardware_interface/dynamixel_hardware_interface/src/util.cpp#
implementation of the utility function. More...
Namespaces#
Name |
---|
dynamixel_hardware_interface |
Detailed Description#
implementation of the utility function.
Author: Masaya Kataoka (ms.kataoka@gmail.com)
Version: 0.1
Date: 2021-05-01
Copyright: Copyright (c) OUXT Polaris 2021
Source code#
// Copyright (c) 2021 OUXT Polaris
//
// 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.
#include <dynamixel_hardware_interface/util.hpp>
namespace dynamixel_hardware_interface
{
const std::string toString(const SupportedMotors motor)
{
switch (motor) {
case SupportedMotors::XW540_T260:
return "XW540-T260";
break;
case SupportedMotors::INVALID:
throw std::runtime_error("invalid moter type");
break;
}
return "";
}
} // namespace dynamixel_hardware_interface
Updated on 17 July 2023 at 01:42:11 UTC