Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle to handler #10

Open
wants to merge 3 commits into
base: melodic
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .travis.rosinstall
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
- git:
uri: 'https://github.com/KITrobotics/force_torque_sensor.git'
local-name: force_torque_sensor
version: kinetic-devel
version: force-torque-sensor-hw-handler
- git:
uri: 'https://github.com/KITrobotics/ipr_extern.git'
local-name: ipr_extern
Expand All @@ -30,3 +30,7 @@
uri: 'https://github.com/ipa320/cob_perception_common.git'
local-name: cob_perception_common
version: indigo_dev
- git:
uri: 'https://github.com/KITrobotics/ros_control.git'
local-name: ros_control
version: combined_robot_sensor_hw
2 changes: 1 addition & 1 deletion common/src/ati_force_torque_hw_rs485.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ bool ATIForceTorqueSensorHWRS485::ReadData()
readStart = ros::Time::now();
#endif
/* *** READ *** */
int n = read( m_rs485, &streamBuf + bufferSize , sizeof(streamBuf) - bufferSize );
int n = ::read( m_rs485, &streamBuf + bufferSize , sizeof(streamBuf) - bufferSize );
/* Error Handling */
if (n < 0)
{
Expand Down
4 changes: 2 additions & 2 deletions src/force_torque_sensor_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
* If not, see <http://www.gnu.org/licenses/>.
*
****************************************************************/
#include <force_torque_sensor/force_torque_sensor_handle.h>
#include <force_torque_sensor/force_torque_sensor_hw_handler.h>
#include <force_torque_sensor/force_torque_sensor_sim.h>
#include <force_torque_sensor/NodeConfigurationParameters.h>

Expand Down Expand Up @@ -80,7 +80,7 @@ class ATIForceTorqueSensorNode
ROS_ERROR("Unknown sensor hardware plugin!");
return;
}
new force_torque_sensor::ForceTorqueSensorHandle(nh, sensor, node_params_.sensor_frame,node_params_.transform_frame);
new force_torque_sensor::ForceTorqueSensorHWHandler(nh, sensor, node_params_.sensor_frame,node_params_.transform_frame);
}
private:
force_torque_sensor::NodeConfigurationParameters node_params_;
Expand Down