Skip to content

Commit 9f2e507

Browse files
committed
fix(franka_hw_sim): fix robot name differ warning
This commit ensures that the `Caution: Robot Names differ!` warning is not thrown when the user omits the `<robotNamespace>`` tag in their URDF/SDF file.
1 parent d439fc7 commit 9f2e507

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

franka_gazebo/src/franka_hw_sim.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ bool FrankaHWSim::initSim(const std::string& robot_namespace,
3636
const urdf::Model* const urdf,
3737
std::vector<transmission_interface::TransmissionInfo> transmissions) {
3838
model_nh.param<std::string>("arm_id", this->arm_id_, robot_namespace);
39-
if (this->arm_id_ != robot_namespace) {
39+
if (robot_namespace != "/" && this->arm_id_ != robot_namespace) {
4040
ROS_WARN_STREAM_NAMED(
4141
"franka_hw_sim",
4242
"Caution: Robot names differ! Read 'arm_id: "

0 commit comments

Comments
 (0)