ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Get joing angle

asked 2022-01-23 10:21:13 -0600

Ghotic gravatar image

Hello guys i am trying to find some example how can i get actual joint angle from planing. I follow demos from install tutorial and i add my robot to noetic moveit1. When i use rviz and plan movement it is possible to get angles of joints when i execute plan ?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2022-01-24 20:02:58 -0600

osilva gravatar image

updated 2022-01-24 20:07:01 -0600

Hi @Ghotic

You can get the values of all the joints from the MoveGroup interface.

Create an instance of RobotCommander object and use the get_current_state() method.

robot = moveit_commander.RobotCommander()
print(robot.get_current_state())

Or by using `get_current_joint_values()‘

joint_values = move_group.get_current_joint_values()

You can use Python or C++ to access this information.

Take a look at this tutorial: https://ros-planning.github.io/moveit...

edit flag offensive delete link more

Question Tools

Stats

Asked: 2022-01-23 10:21:13 -0600

Seen: 121 times

Last updated: Jan 24 '22