I solved this issue for me by commenting out two lines in interpolated_ik_motion_planner/scripts/interpolated_ik_motion_planner.py as below:
if __name__ == "__main__":
which_arm = None
# if len(sys.argv) >= 2:
# which_arm = sys.argv[1]
interpolated_ik_service = InterpolatedIKService(which_arm)
rospy.loginfo("Ready to serve interpolated IK motion plan requests.")
rospy.spin()
Here is my launch file, which makes the planner connect to the services it needs (e.g. IK):
<launch>
<group ns="your_robot_name">
<node name="interpolated_ik_node" pkg="interpolated_ik_motion_planner" type="interpolated_ik_motion_planner.py" args="" respawn="false">
<param name="robot_prefix" type="string" value="your_robot_name"/>
<param name="num_steps" type="int" value="0"/>
<param name="pos_spacing" type="double" value="0.02"/>
<param name="rot_spacing" type="double" value="0.0349065850399"/>
<param name="collision_check_resolution" type="int" value="0"/>
<param name="consistent_angle" type="double" value="0.017"/>
<param name="collision_aware" type="int" value="1"/>
<param name="start_from_end" type="int" value="0"/>
</node>
</group>
</launch>
Hope this works for you as well!