Skip to content
Snippets Groups Projects
Commit 826ef42b authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Added a function to get a pointer to the base class memort buffer.

parent 9a327c84
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,7 @@ namespace dynamixel_robot_gazebo
virtual void update(const ros::Duration& period)=0;
unsigned char get_id(void);
std::string get_name(void);
unsigned char *get_memory(void);
virtual ~CDynDevice();
};
}
......
......@@ -81,6 +81,11 @@ namespace dynamixel_robot_gazebo
return this->name;
}
unsigned char *CDynDevice::get_memory(void)
{
return this->memory;
}
CDynDevice::~CDynDevice()
{
if(this->memory!=NULL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment