In tutorials of wikiros, roscpp, rospy and std_msgs become dependencies of our newly-created package. What I am wondering is what they provide for us.
- For example, I am writing a node, and in this node, we create publisher and send messages to a topic. The messages are are in type of String.msg. In other words, by using std_msgs::String type, I define an msg variable and publish it via in the node. In this case, which dependency provide std_msgs::String type for us ?
Someone told me that all headers defined for messages are provided by roscpp. Dependency of std_msgs package takes role in creating a custom message. If you do not create user-defined message, you do not make std_msgs a dependency for your package. All the headers for the messages are given to you by roscpp.
Is this correct ? I cannot find a resource what these dependencies are for.
Originally posted by gktg1514 on ROS Answers with karma: 67 on 2019-09-22
Post score: 0