Skip to contents

Package overview

robotcompR robotcompR-package
robotcompR: robotics, kinematics, dynamics and motion planning in R

Rotations and quaternions

robot_rotation()
Rotations in two and three dimensions
as_euler() as_axis_angle() as_rotvec()
Convert a rotation to other representations
rotx() roty() rotz() rot2()
Elementary rotation matrices
is_rotation_matrix()
Test whether a matrix is a rotation matrix
orthonormalize()
Project a matrix onto the nearest rotation
robot_quaternion()
Unit quaternions
quaternion_conjugate() quaternion_rotate() quaternion_distance()
Quaternion operations
quaternion_slerp()
Spherical linear interpolation of rotations
deg2rad() rad2deg()
Convert between degrees and radians
wrap_angle()
Wrap angles to the interval from minus pi to pi

Rigid transformations

robot_pose()
Rigid-body poses in SE(2) and SE(3)
pose_rotation() pose_translation()
Pose components
transl() trotx() troty() trotz()
Homogeneous transforms from elementary motions
robot_compose()
Compose poses
robot_inverse()
Inverse of a rotation or pose
robot_relative_pose()
Relative pose between two frames
robot_transform_point() robot_transform_direction()
Transform points and directions
robot_pose_distance()
Distance between two poses
robot_pose_interp()
Interpolate between two poses

Lie groups

so3_hat() so3_vee() se3_hat() se3_vee() so2_hat() so2_vee() se2_hat() se2_vee()
Hat and vee operators
so3_exp() so3_log() se3_exp() se3_log()
Exponential and logarithm maps of SO(3) and SE(3)
so2_exp() so2_log() se2_exp() se2_log()
Exponential and logarithm maps of SO(2) and SE(2)
so3_jacobian_left() so3_jacobian_right() so3_jacobian_left_inverse() so3_jacobian_right_inverse()
Jacobians of SO(3)
se3_adjoint() se2_adjoint()
Adjoint representation of SE(3) and SE(2)

Robot models

robot_joint()
Robot joints
robot_link()
Robot links
inertia_rod() inertia_box() inertia_cylinder() inertia_sphere()
Inertia tensors of simple solids
robot_model()
Robot models as rigid-body trees
robot_dh()
Robot models from Denavit-Hartenberg parameters
dh_transform()
Denavit-Hartenberg transform of one link
robot_example()
Example robot models
robot_dof() robot_joints() robot_joint_names() robot_links() robot_frames() robot_limits()
Model introspection
robot_add_frame() robot_set_base() robot_set_end_effector() robot_set_inertia() robot_set_limits()
Modify a robot model
robot_within_limits() robot_clamp()
Joint limits checks
robot_random_configuration() robot_home()
Random and home configurations
robot_read_urdf()
Read a URDF robot description
robot_write_urdf()
Write a robot model as URDF

Kinematics

robot_fk()
Forward kinematics
robot_fk_positions()
Positions of a frame for many configurations
robot_jacobian()
Geometric Jacobians
robot_jacobian_numeric()
Finite-difference Jacobian check
robot_jacobian_analytic()
Analytic Jacobians
robot_manipulability()
Manipulability and singularity analysis
robot_is_singular()
Detect singular configurations
robot_ik()
Numerical inverse kinematics
ik_planar2()
Closed-form inverse kinematics of a planar two-link arm

Dynamics and simulation

robot_inverse_dynamics()
Inverse dynamics with the recursive Newton-Euler algorithm
robot_mass_matrix()
Joint-space mass matrix with the composite rigid body algorithm
robot_forward_dynamics()
Forward dynamics with the articulated body algorithm
robot_gravity_torque() robot_coriolis() robot_bias_forces()
Gravity, Coriolis and centrifugal terms
robot_com() robot_energy()
Center of mass and mechanical energy
robot_simulate()
Simulate torque-driven rigid-body dynamics

Trajectories

robot_traj_polynomial()
Polynomial joint trajectories
robot_traj_trapezoidal()
Trapezoidal velocity profile trajectories
robot_traj_path()
Time-parameterize a geometric path
robot_traj_cartesian()
Task-space (Cartesian) trajectories
robot_traj_check()
Check a trajectory against robot limits

Collision checking

geom_sphere() geom_box() geom_cylinder() geom_capsule() geom_convex() geom_mesh()
Collision and visual geometry
geom_distance()
Distance between two geometric primitives
robot_attach_geometry()
Attach collision geometry to a link
robot_capsule_links()
Capsule collision geometry for DH arms
robot_environment()
Static environments
robot_check_collision()
Collision checking at a configuration
robot_check_path()
Collision checking along a path

Motion planning

robot_planner()
Motion planners
robot_plan()
Plan a path between two configurations
robot_shortcut()
Shortcut smoothing of a planned path

Mobile robots

robot_unicycle() robot_diffdrive() robot_bicycle()
Mobile robot models
unicycle_step()
Closed-form unicycle motion
diffdrive_forward() diffdrive_inverse() diffdrive_odometry()
Differential-drive kinematics and odometry
mobile_simulate()
Simulate a mobile robot
body_to_world_velocity() world_to_body_velocity()
Convert between body and world velocities
pure_pursuit()
Pure pursuit path following

Localization

landmark_measurements()
Range-bearing landmark measurements
robot_ekf() ekf_predict() ekf_update()
Extended Kalman filter localization
robot_ukf() ukf_predict() ukf_update()
Unscented Kalman filter localization
robot_particle_filter() pf_predict() pf_update() pf_estimate()
Particle filter localization

Mapping and SLAM

robot_occupancy_grid()
Occupancy grid maps
grid_world_to_cell() grid_cell_to_world() grid_probability() grid_occupied()
Grid coordinate conversion and probabilities
grid_raycast() grid_update_scan()
Simulate and integrate range scans
grid_inflate()
Inflate obstacles
grid_astar()
A* search on an occupancy grid
robot_ekf_slam() ekf_slam_predict() ekf_slam_update() ekf_slam_landmarks()
EKF-SLAM with range-bearing landmarks
robot_pose_graph() pose_graph_add_edge()
Pose graphs
pose_graph_optimize()
Optimize a pose graph

Visualization

robot_plot()
Plot a robot configuration
robot_plot_workspace()
Plot the reachable workspace