Closed WhySoZed closed 1 month ago
I recommend avoiding the custom API and using the recently created MovietConfigsBuilder
created. Check this internal guide https://github.com/xArm-Developer/xarm_ros2/issues/87.
Notice how the option to publish the SRDF is set to true
. Which is precisely what your moveGroupInterface
is missing.
that works thank you
Hi, first of all I'm an absolute beginner in ros and I'm trying to setup some basis to control the lite6 via C++-Code. I also want to use a Stereo Camera later to detect a ball for the robot to work with.
I followed every step of the instructions to setup the xarm_api and am now able to successfully launch: ros2 launch xarm_moveit_config lite6_moveit_realmove.launch.py robot_ip:=192.168.1.186
Next i followed a MoveIt Tutorial: https://moveit.picknik.ai/humble/doc/tutorials/your_first_project/your_first_project.html
In it I created a new ros package and started coding: first i create a ros node called 'node' now i try to create a MoveIt MoveGroup Interface:
in one terminal i launched ros2 launch xarm_moveit_config lite6_moveit_realmove.launch.py robot_ip:=192.168.1.186 in another i try to run my code and get this error:
I understood that the second parameter of the MoveGroupInterface constructor should contain the name of the Planning Group and found that in the MoveIt UI
So maybe its a problem with my moveit installation: I have two workspaces
In my terminal I only sourced my ros installation and the 'dev_ws' workspace. I don't understand why MoveGroupInterface seems to try to parse something in the 'ws_moveit2' workspace. Do I have to install something extra in the dev_ws workspace to use MoveIt like this?
Thank you for reading my issue.