Skip to content

Commit

Permalink
Set joint_states_ to initial_value as well
Browse files Browse the repository at this point in the history
  • Loading branch information
JafarAbdi committed Oct 8, 2024
1 parent 1205b10 commit a6486ff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/topic_based_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ CallbackReturn TopicBasedSystem::on_init(const hardware_interface::HardwareInfo&
// Check the initial_value param is used
if (!interface.initial_value.empty())
{
joint_states_[index][i] = std::stod(interface.initial_value);
joint_commands_[index][i] = std::stod(interface.initial_value);
}
}
Expand Down
1 change: 0 additions & 1 deletion test/ros2_control.test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from launch.substitutions import (
LaunchConfiguration,
PathJoinSubstitution,
ThisLaunchFileDir,
)
from launch_ros.actions import Node

Expand Down

0 comments on commit a6486ff

Please sign in to comment.