AFAIK it is also possible to have multiple nodes with the same name in different packages if you are not building with catkin_make, but instead with catkin_make_isolated or catkin_tools, since with these tools every package has it's own build space. That way you will also not have to apply the workaround @ahendrix suggested.