Robot.Links.Server (dpp v0.1.1)

Robot model as a GenServer

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Example

{:ok, pid} =Robot.Links.Server.start_link([])
joints = %Robot.Joints{joint1: :math.pi/2, joint2: 0.0, joint3: 0.0, joint4: :math.pi/2, joint5: 0.0, joint6: 0.0}
robot_model = Robot.Links.Server.get_mesh_with_joints(pid, joints)
Robot.Links.Server.draw(pid, robot_model)

Example

{:ok, pid} =Robot.Links.Server.start_link([])
Robot.Links.Server.draw_default(pid)

Example

{:ok, pid} =Robot.Links.Server.start_link([])
joints = %Robot.Joints{joint1: :math.pi/2, joint2: 0.0, joint3: 0.0, joint4: :math.pi/2, joint5: 0.0, joint6: 0.0}
robot_model = Robot.Links.Server.get_mesh_with_joints(pid, joints)

Example

{:ok, pid} =Robot.Links.Server.start_link([])

Link to this section Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

draw(pid, robot_model)

Example

{:ok, pid} =Robot.Links.Server.start_link([])
joints = %Robot.Joints{joint1: :math.pi/2, joint2: 0.0, joint3: 0.0, joint4: :math.pi/2, joint5: 0.0, joint6: 0.0}
robot_model = Robot.Links.Server.get_mesh_with_joints(pid, joints)
Robot.Links.Server.draw(pid, robot_model)
Link to this function

draw_default(pid)

Example

{:ok, pid} =Robot.Links.Server.start_link([])
Robot.Links.Server.draw_default(pid)
Link to this function

get_mesh_with_joints(pid, joints)

Example

{:ok, pid} =Robot.Links.Server.start_link([])
joints = %Robot.Joints{joint1: :math.pi/2, joint2: 0.0, joint3: 0.0, joint4: :math.pi/2, joint5: 0.0, joint6: 0.0}
robot_model = Robot.Links.Server.get_mesh_with_joints(pid, joints)
Link to this function

start_link(ops)

Example

{:ok, pid} =Robot.Links.Server.start_link([])