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

Implement RobotDynamicsEstimatorDevice - PR6 #756

Merged
merged 3 commits into from
Nov 10, 2023

Conversation

isorrentino
Copy link
Collaborator

@isorrentino isorrentino commented Nov 8, 2023

This is the last PR for the RobotDynamicsEstimator. It implements the device that will be running on the robot and uses the full RDE library. I tested the device in simulation by commenting out the readings of the motor currents (not available in Gazebo) and by setting them manually.

@isorrentino
Copy link
Collaborator Author

I rebased on master. The PR is ready for review @GiulioRomualdi

BipedalLocomotion::ManifConversions
BipedalLocomotion::VectorsCollection
CONFIGURE_PACKAGE_NAME robot_dynamics_estimator_device)
endif()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
endif()
endif()

# Install each model
foreach (dir ${subdirs})
yarp_install(DIRECTORY robots/${dir} DESTINATION ${YARP_ROBOTS_INSTALL_DIR})
endforeach ()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
endforeach ()
endforeach ()

bool openRemapperVirtualSensors();
};

#endif // BIPEDAL_LOCOMOTION_FRAMEWORK_ROBOT_DYNAMICS_ESTIMATOR_DEVICE_H
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#endif // BIPEDAL_LOCOMOTION_FRAMEWORK_ROBOT_DYNAMICS_ESTIMATOR_DEVICE_H
#endif // BIPEDAL_LOCOMOTION_FRAMEWORK_ROBOT_DYNAMICS_ESTIMATOR_DEVICE_H

@@ -0,0 +1,126 @@
/**
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you document the class and the methods?

Comment on lines 34 to 36
RobotDynamicsEstimatorDevice::~RobotDynamicsEstimatorDevice()
{
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
RobotDynamicsEstimatorDevice::~RobotDynamicsEstimatorDevice()
{
}
RobotDynamicsEstimatorDevice::~RobotDynamicsEstimatorDevice() = default;

Comment on lines 679 to 681
{

std::lock_guard<std::mutex> lockOutput(m_estimatorOutput.mutex);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should indent this

}

return true;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}
}

@isorrentino
Copy link
Collaborator Author

Suggestions applied and class documented.
@GiulioRomualdi

@isorrentino
Copy link
Collaborator Author

I'm going to add the README. I'll let you know as soon as it is pushed.

@isorrentino isorrentino force-pushed the RDE/PR6 branch 2 times, most recently from 4904d53 to aaa4cbe Compare November 9, 2023 16:59
@isorrentino
Copy link
Collaborator Author

README added (actually yesterday). @GiulioRomualdi

@isorrentino
Copy link
Collaborator Author

I just rebased on master

@GiulioRomualdi GiulioRomualdi enabled auto-merge (squash) November 10, 2023 09:05
@GiulioRomualdi GiulioRomualdi merged commit 552b9e5 into ami-iit:master Nov 10, 2023
12 checks passed
@isorrentino isorrentino deleted the RDE/PR6 branch November 10, 2023 11:00
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 this pull request may close these issues.

2 participants