mirror of
https://gitlab.com/obbart/universal_robots_ros_driver.git
synced 2026-04-10 18:10:47 +02:00
renamed hardware interface function that handles changes in robot-program state
This commit is contained in:
@@ -68,7 +68,7 @@ bool HardwareInterface ::init(ros::NodeHandle& root_nh, ros::NodeHandle& robot_h
|
||||
|
||||
ROS_INFO_STREAM("Initializing urdriver");
|
||||
ur_driver_.reset(new UrDriver(robot_ip, script_filename, recipe_filename,
|
||||
std::bind(&HardwareInterface::handleRobotProgramStop, this, std::placeholders::_1)));
|
||||
std::bind(&HardwareInterface::handleRobotProgramState, this, std::placeholders::_1)));
|
||||
|
||||
if (!root_nh.getParam("hardware_interface/joints", joint_names_))
|
||||
{
|
||||
@@ -108,7 +108,6 @@ bool HardwareInterface ::init(ros::NodeHandle& root_nh, ros::NodeHandle& robot_h
|
||||
|
||||
ROS_INFO_STREAM_NAMED("hardware_interface", "Loaded ur_rtde_driver hardware_interface");
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -272,7 +271,7 @@ bool HardwareInterface ::isRobotProgramRunning() const
|
||||
return robot_program_running_;
|
||||
}
|
||||
|
||||
void HardwareInterface ::handleRobotProgramStop(bool program_running)
|
||||
void HardwareInterface ::handleRobotProgramState(bool program_running)
|
||||
{
|
||||
robot_program_running_ = program_running;
|
||||
std_msgs::Bool msg;
|
||||
|
||||
Reference in New Issue
Block a user