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

State::interface not created. #52

Closed
olivier-stasse opened this issue Feb 5, 2021 · 1 comment · Fixed by #53
Closed

State::interface not created. #52

olivier-stasse opened this issue Feb 5, 2021 · 1 comment · Fixed by #53
Assignees

Comments

@olivier-stasse
Copy link

olivier-stasse commented Feb 5, 2021

Dear @ahcorde,

I believe that
https://github.com/ros-simulation/gazebo_ros2_control/blob/79207cc7d7630a8aeced1b9f5bba985e0805e538/gazebo_ros2_control/src/gazebo_system.cpp#L171

should be

this->dataPtr->joint_pos_state_[j] = std::make_shared<hardware_interface::StateInterface>( joint_name, hardware_interface::HW_IF_POSITION, &this->dataPtr->joint_position_[j]);

The same goes for velocity and effort.

Do you agree or did I misunderstood ?

@ahcorde ahcorde self-assigned this Feb 5, 2021
@ahcorde
Copy link
Collaborator

ahcorde commented Feb 5, 2021

Nice catch! #53

@ahcorde ahcorde linked a pull request Feb 5, 2021 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants