Skip to content

Commit

Permalink
add_type_name_function (#43)
Browse files Browse the repository at this point in the history
Adds an accessor for the typename in the RosMessage class
  • Loading branch information
ansar-z-khan authored Mar 4, 2022
1 parent be999f2 commit 07c69ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ros_message.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ class RosMessage {
data_->print();
}

std::string getTypeName(){
return msg_def_->name();
}

std::string toString() {
if (!parsed_) {
hydrate();
Expand Down

0 comments on commit 07c69ce

Please sign in to comment.