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

xarm planner simulation #200

Open
Tn-333 opened this issue Sep 5, 2023 · 3 comments
Open

xarm planner simulation #200

Tn-333 opened this issue Sep 5, 2023 · 3 comments

Comments

@Tn-333
Copy link

Tn-333 commented Sep 5, 2023

I'm a beginner, so I apologize for the basic questions.

roslaunch xarm_planner xarm_planner_rviz_sim.launch robot_dof:=7 robot_type:=xarm add_gripper:=false add_vacuum_gripper:=false

When I start rviz with this command and run xarm_simple_planner_test

[ INFO] [1693880039.867058739]: waitForService: Service [/xarm/set_state] has not been advertised, waiting...

It will be displayed. Is this normal or abnormal?
If it is abnormal, please tell me the solution.

@vimior
Copy link
Contributor

vimior commented Sep 5, 2023

@Tn-333
Sorry, this xarm_simple_planner_test routine only supports real robotic arms. Virtual robotic arms can directly call the corresponding services through rosservice call. In fact, xarm_simple_planner_test also calls some services, but there is a service that only supports real robots. The virtual manipulator only has the arm, so when the virtual manipulator runs this routine, it will be stuck in the connection service.

@Tn-333
Copy link
Author

Tn-333 commented Sep 11, 2023

Thank you for your detailed reply.
I would like to ask you something additional.
I would like to run C++ code and check its operation without connecting to an actual xarm7 machine. What steps should I take?

@vimior
Copy link
Contributor

vimior commented Sep 11, 2023

@Tn-333
As you used before, you started xarm_planner_rviz_sim.launch. This will not be connected to the real robot arm. However, xarm_simple_planner_test does not apply to xarm_planner_rviz_sim.launch. You can simply modify the source code of xarm_simple_planner_test and compile it for use, or call it directly through the command line. services control, refer to xarm_planner.

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