ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

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 ...