Skip to content

Commit

Permalink
Move demo output
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Nov 24, 2024
1 parent 19aade1 commit 518381a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example_14/hardware/rrbot_actuator_without_feedback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ hardware_interface::CallbackReturn RRBotActuatorWithoutFeedback::on_init(
}

// BEGIN: This part here is for exemplary purposes - Please do not copy to your production code
RCLCPP_INFO(get_logger(), "Configuring ...please wait...");

// Initialize objects for fake mechanical connection
sock_ = socket(AF_INET, SOCK_STREAM, 0);
if (sock_ < 0)
Expand Down Expand Up @@ -135,6 +133,8 @@ hardware_interface::CallbackReturn RRBotActuatorWithoutFeedback::on_init(
hardware_interface::CallbackReturn RRBotActuatorWithoutFeedback::on_configure(
const rclcpp_lifecycle::State & /*previous_state*/)
{
RCLCPP_INFO(get_logger(), "Configuring ...please wait...");

// reset values always when configuring hardware
for (const auto & [name, descr] : joint_command_interfaces_)
{
Expand Down
2 changes: 2 additions & 0 deletions example_14/hardware/rrbot_sensor_for_position_feedback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ hardware_interface::CallbackReturn RRBotSensorPositionFeedback::on_init(
hardware_interface::CallbackReturn RRBotSensorPositionFeedback::on_configure(
const rclcpp_lifecycle::State & /*previous_state*/)
{
RCLCPP_INFO(get_logger(), "Configuring ...please wait...");

// set some default values for joints
// reset values always when configuring hardware
for (const auto & [name, descr] : sensor_state_interfaces_)
Expand Down

0 comments on commit 518381a

Please sign in to comment.