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

How to deploy ocs2 on a fixed-base dual-arm robot. #95

Open
ppap36 opened this issue Feb 29, 2024 · 5 comments
Open

How to deploy ocs2 on a fixed-base dual-arm robot. #95

ppap36 opened this issue Feb 29, 2024 · 5 comments

Comments

@ppap36
Copy link

ppap36 commented Feb 29, 2024

Question
Hello! I am surprised by the convenience of ocs2 on single-arm robot.
However, when I want to deploy ocs2 on dual-arm robot. I have no idea where to go.
Can someone give me some advice?

Thank you so much!

@HANCKH
Copy link

HANCKH commented Nov 26, 2024

Hello, I am encountering the same question now. May I ask how you deal with these questions?

@ppap36
Copy link
Author

ppap36 commented Nov 29, 2024

do you still need help? I have solved it

@GNMM-mf
Copy link

GNMM-mf commented Jan 7, 2025

@ppap36 Hi, I am encountering the same question. Could you please introduce your method ? I'm interested, thanks!

@GJtheLearner
Copy link

do you still need help? I have solved it

I need you help,bro.I am dying!!!!

@ppap36
Copy link
Author

ppap36 commented Mar 22, 2025

看一下

ocs2_ws/src/ocs2/ocs2_pinocchio/ocs2_pinocchio_interface/src/PinocchioEndEffectorKinematics.cpp

的第一个函数

PinocchioEndEffectorKinematics::PinocchioEndEffectorKinematics(..........)
: pinocchioInterfacePtr_(nullptr), mappingPtr_(mapping.clone()), endEffectorIds_(std::move(endEffectorIds)) {
for (const auto& bodyName : endEffectorIds_) {
endEffectorFrameIds_.push_back(pinocchioInterface.getModel().getBodyId(bodyName));
}
}

这个是一个获取所有末端序号的函数,我是修改了这个函数,直接把两个末端的序号push进去了,但是代码我已经丢失了,而且现在已经不用ocs2,除此之外,还需要修改task.info等其他函数以适配双臂模型。
但是,最最重要的就是我上面写的这个函数。

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

4 participants