Skip to Content
Robot Operating System Cookbook
book

Robot Operating System Cookbook

by Kumar Bipin
June 2018
Intermediate to advanced
484 pages
11h 36m
English
Packt Publishing
Content preview from Robot Operating System Cookbook

Getting useful information from motion planning

Through code, we can also get some valuable data that we may require for our code. Let's see some examples.

We can get the reference frame for a certain group by executing this line:

print "Reference frame: %s" % group.get_planning_frame() 

We can get the end-effector link for a certain group by executing this line:

print "End effector: %s" % group.get_end_effector_link() 

We can get a list with all of the groups of the robot, like this:

print "Robot Groups:" 
print robot.get_group_names() 

We can get the current values of the joints, like this:

print "Current Joint Values:" 
print group.get_current_joint_values() 

We can also get the current pose of the end-effector of the robot, like this:

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mobile Intelligent Autonomous Systems

Mobile Intelligent Autonomous Systems

Jitendra R. Raol, Ajith K. Gopal
Wheeled Mobile Robotics

Wheeled Mobile Robotics

Gregor Klancar, Andrej Zdesar, Saso Blazic, Igor Skrjanc

Publisher Resources

ISBN: 9781783987443Supplemental Content