File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
ur_robot_driver/include/ur_robot_driver/ros Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,21 @@ namespace ur_driver
3535{
3636namespace rtde_interface
3737{
38+ /* !
39+ * \brief The DataPackagePublisher class handles publishing all data fields of an RTDE data
40+ * package to various ROS topics.
41+ */
3842class DataPackagePublisher
3943{
4044public:
4145 DataPackagePublisher () = delete ;
4246
47+ /* !
48+ * \brief Creates a new DataPackagePublisher object.
49+ *
50+ * \param recipe The different data fields contained in the package that should be published
51+ * \param nh The node handle to advertise publishers on
52+ */
4353 DataPackagePublisher (const std::vector<std::string>& recipe, ros::NodeHandle& nh) : recipe_(recipe)
4454 {
4555 for (auto str : recipe)
@@ -49,6 +59,11 @@ class DataPackagePublisher
4959 }
5060
5161 void publishData (const std::unique_ptr<DataPackage>& data_package)
62+ /* !
63+ * \brief Publishes all relevant data fields of a given data package.
64+ *
65+ * \param data_package The data package to publish
66+ */
5267 {
5368 for (auto const & i : publishers_)
5469 {
You can’t perform that action at this time.
0 commit comments