ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I know where the problem was now! I was missing the rospy.init_node()
So my main should be:
if __name__ == '__main__':
rospy.init_node('package_name', anonymous=True)
sim = rospy.get_param( '~sim' ) # <- edit
#something else ...