Home | Tutorials | Wiki | Issues
Ask Your Question
0

member of one class pointing to member of another class

asked 2016-09-04 06:03:53 -0500

hari1234 gravatar image

updated 2016-09-04 06:05:14 -0500

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-09-04 06:29:21 -0500

Georacer gravatar image

You are slightly confused: SetVelocityPID() is a member function of JointControllerclass, as seen on the API: http://osrf-distributions.s3.amazonaw...

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-09-04 06:03:53 -0500

Seen: 180 times

Last updated: Sep 04 '16