How do I know it

Respected Prof,

  1. Are the node names that come in examples in this course already present, or they are just arbitrary? Like in the example below, I don’t know where did this name of the node come from…Till now, I didn’t get total grasp of this naming of the node.

  2. How do I know what name to choose?

  3. If I’m using a name of my own, do I need to use anonymous = True ?

    launch
    node pkg=“unit_4_services”
    type=“bb8_move_in_circle_service_client.py”
    name=“service_move_bb8_in_circle_client”
    output=""
    /node

    /launch

And by the way, there’s this small issue I’m facing right now. It’s the first time I’m facing this problem. When I’m uploading this above code here, It’s not visible when it’s in tags <> and visible without tags. That’s why I had to remove the tags from the above code.

They can be arbitrary, just use something intuitive. This will take precedence over the one you define in the code using rospy.init_node().

As mentioned above, just use something that’s intuitive, like the one in the example. You can also use what you defined in the code.

If I’m using a name of my own, do I need to use anonymous = True ?

No, anonymous nodes are used for a different reason.

1 Like