Skip to content
Snippets Groups Projects
Commit bc2403a1 authored by Francois Keith's avatar Francois Keith
Browse files

Clean romeo script.

Remove rviz,
Better loading of the solver.
parent 92e882d0
No related branches found
No related tags found
1 merge request!1[major][cpp] starting point to integrate pinocchio
...@@ -22,18 +22,13 @@ from numpy import * ...@@ -22,18 +22,13 @@ from numpy import *
from dynamic_graph.sot.romeo.robot import * from dynamic_graph.sot.romeo.robot import *
robot = Robot('romeo', device=RobotSimu('romeo')) robot = Robot('romeo', device=RobotSimu('romeo'))
plug(robot.device.state, robot.dynamic.position)
# Binds with ROS. assert that roscore is running. # Binds with ROS. assert that roscore is running.
from dynamic_graph.ros import * from dynamic_graph.ros import *
ros = Ros(robot) ros = Ros(robot)
# Create a simple kinematic solver. # Create a simple kinematic solver.
from dynamic_graph.sot.application.velocity.precomputed_tasks import initialize from dynamic_graph.sot.application.velocity.precomputed_tasks import initialize
solver = initialize ( robot )
# Alternate visualization tool
from dynamic_graph.sot.core.utils.viewer_helper import addRobotViewer
addRobotViewer(robot.device,small=True,small_extra=24,verbose=False)
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
#----- MAIN LOOP --------------------------------------------------------------- #----- MAIN LOOP ---------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment