13 std::string port_string = rokubiminiName +
"/setup/port";
14 if (nh->hasParam(port_string))
20 ROS_ERROR(
"Could not find serial port in Parameter Server: %s", port_string.c_str());
23 std::string baud_rate_string = rokubiminiName +
"/setup/baud_rate";
24 if (nh->hasParam(baud_rate_string))
27 nh->getParam(baud_rate_string, baud_rate);
28 baudRate_ =
static_cast<uint32_t
>(baud_rate);
32 ROS_ERROR(
"Could not find baud rate in Parameter Server: %s", baud_rate_string.c_str());
std::shared_ptr< ros::NodeHandle > NodeHandlePtr
virtual void load(const std::string &rokubiminiName, NodeHandlePtr nh)
void load(const std::string &rokubiminiName, NodeHandlePtr nh) override
Loads the sensor configuration from the parameter server.
std::string serialPort_
The serial port name.
uint32_t baudRate_
The baud rate of the serial communication.