Robotics StackExchange | Archived questions

member of one class pointing to member of another class

I was trying to understand the lines in the velodyne_plugin.cc file from this tutorial, Here i saw this line which confuse me:

 this->model->GetJointController()->SetVelocityPID()

Here how can a GetJointController() member function of JointController Class can point to SetVelocity() member function of Class Joint, without any relation.

Asked by hari1234 on 2016-09-04 06:03:53 UTC

Comments

Answers

You are slightly confused: SetVelocityPID() is a member function of JointController class, as seen on the API: http://osrf-distributions.s3.amazonaws.com/gazebo/api/dev/classgazebo_1_1physics_1_1JointController.html#aaf7c0651a9c303ffe9da783cc4d20601

Asked by Georacer on 2016-09-04 06:29:21 UTC

Comments