Changeset 12 for trunk/shared_serial/src
- Timestamp:
- 08/29/12 16:52:22 (12 years ago)
- Location:
- trunk/shared_serial/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/shared_serial/src/LxSerial.cpp
r8 r12 455 455 LxSerial::~LxSerial() 456 456 { 457 // Warn when you forgot to close the port before destruction.458 // We CANNOT call port_close() here, because port_close is a virtual function459 // and virtual functions cannot be called in constructors and destructors.460 457 if (hPort != INVALID_DEVICE_HANDLE) 461 p rintf("[LxSerial] Warning: you didn't call port_close before calling the destructor.\n");462 } 458 port_close(); 459 } -
trunk/shared_serial/src/server.cpp
r8 r12 116 116 ROS_ASSERT(nh_.getParam("port_type", port_type)); 117 117 ROS_ASSERT(nh_.getParam("baud_rate", baud_rate)); 118 nh_.param<double>("watchdog_interval", watchdog_interval, 1 );118 nh_.param<double>("watchdog_interval", watchdog_interval, 10); 119 119 120 120 if (port_type == "RS232")
Note: See TracChangeset
for help on using the changeset viewer.