Simple ROS OOP Q

from this line of code:
ros::Publisher pub = nh.advertise<geometry_msgs::Twist>(“cmd_vel”, 1000);

I’m confused by this:

what is the scopes operator :: for again?

Hi @abdelzaro8,

It looks like you are not familiar with C++, but this is not the place to teach it. You can either:

  1. Take the Python version of this course instead (if you are familiar with Python).
  2. Take the C++ Basics course if you want to go with C++.

If you are not familiar with either Python or C++, I recommend you start with Python by taking the Python for Robotics course.