Skip to content

Commit a6486ff

Browse files
committed
Set joint_states_ to initial_value as well
1 parent 1205b10 commit a6486ff

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/topic_based_system.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ CallbackReturn TopicBasedSystem::on_init(const hardware_interface::HardwareInfo&
9191
// Check the initial_value param is used
9292
if (!interface.initial_value.empty())
9393
{
94+
joint_states_[index][i] = std::stod(interface.initial_value);
9495
joint_commands_[index][i] = std::stod(interface.initial_value);
9596
}
9697
}

test/ros2_control.test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from launch.substitutions import (
1515
LaunchConfiguration,
1616
PathJoinSubstitution,
17-
ThisLaunchFileDir,
1817
)
1918
from launch_ros.actions import Node
2019

0 commit comments

Comments
 (0)