Hello @Irobo,
Can you please, check into RVIZ -> Global Options -> Fixed Frame:
It should be always in World
or to robot base
not to a specific link.
I would suggest watching this Moveit 1 hr tutorial to have a basic idea of motion planning in Moveit.
How can I publish a specific position of a specific link which that link will be pointed to using /tf topic and display it in Rviz, it means the pose of that relative link will be updated
I don't know if I understand your question correctly, but I think you want to move your robot's specific join and view it into RVIZ or via terminal. If it is right then,
A. If you want to move your robot-specific joints from RVIZ itself, you have to add a motion planning tab into Rviz, and you have to go to the move joints tab you can easily move your particular joint. As in the given tutorial lhttp://moveit2_tutorials.picknik.ai/doc/quickstart_in_rviz/quickstart_in_rviz_tutorial.html. You need to scroll your mouse in a specific join, and you can execute the motion by going to the Planning tab
and pressing the planning and execute
button.
Note: this link is to clarify how you can make your specific join move into your Rviz. Note you need to follow the previous move its tutorials if you are having any problem with Moveit.
B. You can also move your robot-specific joint from code, and you will be able to view it into Rviz, for Python have a look over here or for cpp look here.
joint_goal[0] = 1.91986 # Your radian coordinate in float.
Note: Over here, if you want to move your robot's 0 joins to 110 degrees, then you need to convert 110 to radian; it's around 1.91986. If you execute your code, then your joint 0 will move over here.
C. I don't know why you required this coordinate for a specific join. I think it is of no use. But if you want this coordinate, you can easily obtain it from /tf. You can get a specific link position with respect to your robot base position or world. For that, you need to follow tf2 code.
trans = tfBuffer.lookup_transform('robot-base or world', 'link-1', rospy.Time())
Over here you can get the transformation to respective things like Robot base or the world. But again, this thing will specify the link position with respect base. I don't think that may be important, but if you want that, then you can get it by using TF2. And another thing if you need the robot current position you can get it from moveit
I hope this may be relevant to your solution. If you have any queries feel free to drop a comment.
For Terminal text output, please don't post images, or links to images, into a question. It is OK to copy/paste big chunks of useful text into your question. You should also format the whole block of text by highlighting it and clicking the 101010 button.
Have you looked for a ros demo provided by manufacturer of the robot arm?
I build it by myself. Now I wanna control it point to a specific position using a keyboard.
Hello @Irobo,
I have given you enough karma, now you can upload images.
Thanks a lot. If I have an award, I will send to you. Could you help me with my question?