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

dual xarm realmove , humble , running both arms simultaneously #39

Open
DailyNir opened this issue Aug 3, 2023 · 11 comments
Open

dual xarm realmove , humble , running both arms simultaneously #39

DailyNir opened this issue Aug 3, 2023 · 11 comments

Comments

@DailyNir
Copy link

DailyNir commented Aug 3, 2023

i am using the dual xarm6 realmove launch commands and it is working great, i was wondering if it would be possible controlling both arms simultaneously because i couldn't figure it out .

please help, thanks.

@vimior
Copy link
Contributor

vimior commented Aug 7, 2023

@DailyNir
When you say controlling two arms at the same time, do you mean one trigger, and both arms move to the same position?
It is possible in theory, but since the planning of moveit depends on the position of the robotic arm, if the position feedback of two robotic arms is used, the effect may not be very good. You can try to use only one robotic arm A for planning, and the other robotic arm B for follow-up control , that is, send control commands to multiple robotic arms at the same time at the driver layer, or write another node to monitor the position of robotic arm A and control robotic arm B.
Note that this can only control multiple robotic arms at the same time, not full synchronization.

@DailyNir
Copy link
Author

DailyNir commented Aug 7, 2023

I meant 2 separate path planners , sending commands separately but run simultaneously so they could preform tasks together .

@vimior
Copy link
Contributor

vimior commented Aug 9, 2023

@DailyNir
Yes, two path planners correspond to two robotic arms, but the control logic needs to be planned by itself, for example, using moveit's MoveGroupInterface control.

@DailyNir
Copy link
Author

DailyNir commented Aug 9, 2023

yes, how would you go about it? because in the ros2 wrapper for the dual arms, you created movegroup for each arm separately but i cant use 2 motion planners simultaneously, please suggest a way

@vimior
Copy link
Contributor

vimior commented Aug 10, 2023

@DailyNir
Sorry, the control started by "dual_xxx" actually integrates the two robotic arms into a whole, so there is only one planner. Although different robotic arms correspond to different Planning Groups, only one can be used at the same time, which may not satisfy your scenario.

@DailyNir
Copy link
Author

so how would you create one movegroup for both arms to plan for both of them?

@vimior
Copy link
Contributor

vimior commented Aug 14, 2023

Since a whole can only have one planner, if you need multiple planners, you can try to start multiple startup scripts that control a single robotic arm (prefix:=L_ ros_namespace:=L), and use MoveGroupInterface to connect to different MoveGroup to control different robotic arm.

@DailyNir
Copy link
Author

So I don't mind having one planner , but can it plan for both simultaneously? I mean plan and execute both with one planner?

@vimior
Copy link
Contributor

vimior commented Aug 14, 2023

@DailyNir
One planner can only plan and execute one at a time.

@DailyNir
Copy link
Author

ok, can you please point me to the services i can send to {x,y,z,r,p,y} and than plan and execute within the rviz/gazebo dual xarm6? i am trying to create a code the plans and executed within the world of rviz but can find the relevant service to do so in your documentation . in rviz2 when i take the marker some x,y,z,r,p,y and i press the plan and execute button, i want to recreate it via code . let me know if this is possible .

@vimior
Copy link
Contributor

vimior commented Aug 24, 2023

@DailyNir
Sorry for taking so long to reply to you.
Refer to moveit's MoveGroupInterface, and correspondingly, please refer to our xarm_planner package (this package is only for the robotic arm, but the way of writing is similar)

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

2 participants