Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Failure #4

Open
ghost opened this issue Jan 6, 2019 · 3 comments
Open

Build Failure #4

ghost opened this issue Jan 6, 2019 · 3 comments

Comments

@ghost
Copy link

ghost commented Jan 6, 2019

msg.position.push_back(joint->Position(0));

While trying to build package using 'catkin build', it is failing at this line of the code and shows the following error:

/home/vignesh/catkin_ws/src/dvrk_env/dvrk_gazebo/src/control_plugin.cpp: In member function ‘void dvrk_gazebo::ControlPlugin::PublishStates()’:
/home/vignesh/catkin_ws/src/dvrk_env/dvrk_gazebo/src/control_plugin.cpp:150:35: error: ‘class gazebo::physics::Joint’ has no member named ‘Position’
msg.position.push_back(joint->Position(0));

@ScottyChung
Copy link

I reversed the change from this f31752c.
Able to build without error, but not sure if it is breaking the Gazebo API.

@adnanmunawar
Copy link
Member

adnanmunawar commented Mar 2, 2020

I am guessing you are using Ubuntu 16.04. If that is the case then it should be fine. We noticed that the default Gazebo with Ubuntu 18.04 deprecated one method (and probably replaced it with another) which prevented us from compiling the package.

@hbaqueiro
Copy link

I am using Ubuntu 16.04 and Gazebo 7 and faced the same problem. The change suggested by @ScottyChung allowed me to build the package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants