Commit c8e717ed authored by Pierre Fernbach's avatar Pierre Fernbach
Browse files

Refactor python3 : fix relative imports

parent 6b48f744
......@@ -3,7 +3,7 @@ from hpp.corbaserver.rbprm.rbprmfullbody import FullBody
from hpp.gepetto import Viewer
import quaternion as quat
from . import quaternion as quat
......
......@@ -3,7 +3,7 @@ from hpp.corbaserver.rbprm.rbprmfullbody import FullBody
from hpp.gepetto import Viewer
import quaternion as quat
from . import quaternion as quat
packageName = "hrp2_14_description"
meshPackageName = "hrp2_14_description"
......
from stair_bauzil_hrp2_interp import *
import generate_muscod_problem as mp
from pathlib2 import Path
import muscodSSH as ssh
from . import muscodSSH as ssh
tryWarmStart = True
print("run bench with feasibility criterion")
......
from stair_bauzil_hrp2_interp import *
import generate_muscod_problem as mp
from pathlib2 import Path
import muscodSSH as ssh
from . import muscodSSH as ssh
tryWarmStart = False
print("run bench without feasibility criterion")
......
from hpp.corbaserver.rbprm.rbprmstate import State,StateHelper
from disp_bezier import *
from .disp_bezier import *
import numpy as np
max_acc = 5.
pointsPerPhase=5
......
......@@ -6,7 +6,7 @@ from pinocchio.utils import *
import locomote
from locomote import WrenchCone,SOC6,ControlType,IntegratorType,ContactPatch, ContactPhaseHumanoid, ContactSequenceHumanoid
import generate_muscod_problem as mp
import muscodSSH as ssh
from . import muscodSSH as ssh
from config import *
statesPerStep=5 # number of double support configs from the planning per call to muscod
......
......@@ -2,8 +2,8 @@
id = 5
leg = lLegId
from disp_bezier import *
from constraint_to_dae import *
from .disp_bezier import *
from .constraint_to_dae import *
s0 = State(fullBody,sId=id)
s2 = State(fullBody,sId=id+1)
s1,success = StateHelper.removeContact(s0,leg)
......
from darpa_hrp2_interStatic import *
from disp_bezier import *
from .disp_bezier import *
from hpp.corbaserver.rbprm.tools.path_to_trajectory import *
......
......@@ -68,7 +68,7 @@ limbsCOMConstraints = { rLegId : {'file': "hrp2/RL_com.ineq", 'effector' : 'RLEG
#~ fullBody.client.basic.robot.setJointConfig('LARM_JOINT0',[1])
#~ fullBody.client.basic.robot.setJointConfig('RARM_JOINT0',[-1])
import quaternion as quat
from . import quaternion as quat
def _getTransform(qEffector):
......
......@@ -93,7 +93,7 @@ limbsCOMConstraints = { rLegId : {'file': "hrp2/RL_com.ineq", 'effector' : 'RLEG
#~ fullBody.client.basic.robot.setJointConfig('LARM_JOINT0',[1])
#~ fullBody.client.basic.robot.setJointConfig('RARM_JOINT0',[-1])
import quaternion as quat
from . import quaternion as quat
def _getTransform(qEffector):
......
......@@ -3,7 +3,7 @@ from hpp.corbaserver.rbprm.rbprmfullbody import FullBody
from hpp.gepetto import Viewer
import quaternion as quat
from . import quaternion as quat
packageName = "hyq_description"
meshPackageName = "hyq_description"
......
......@@ -3,7 +3,7 @@ from hpp.corbaserver.rbprm.rbprmfullbody import FullBody
from hpp.gepetto import Viewer
import quaternion as quat
from . import quaternion as quat
packageName = "phantomx_description"
meshPackageName = "phantomx_description"
......
......@@ -3,7 +3,7 @@ from hpp.corbaserver.rbprm.rbprmfullbody import FullBody
from hpp.gepetto import Viewer
import quaternion as quat
from . import quaternion as quat
packageName = "talos_description"
meshPackageName = "talos_description"
......
......@@ -12,11 +12,11 @@ import pickle as pickle
from pathlib2 import Path
import planning.generate_muscod_problem as mp
import muscodSSH as ssh
from . import muscodSSH as ssh
from planning.config import *
from gen_hrp2_statically_balanced_positions_2d_state import *
from .gen_hrp2_statically_balanced_positions_2d_state import *
from generate_contact_sequence import *
......
......@@ -13,15 +13,15 @@ import pickle as pickle
from pathlib2 import Path
import os
import generate_muscod_problem as mp
import muscodSSH as ssh
from . import muscodSSH as ssh
from config import *
from check_qp import check_traj_valid,check_muscod_traj
import disp_bezier
from constraint_to_dae import *
from .check_qp import check_traj_valid,check_muscod_traj
from . import disp_bezier
from .constraint_to_dae import *
from hpp.corbaserver.rbprm.tools.display_tools import *
from gen_hrp2_statically_balanced_positions_2d_state import *
from .gen_hrp2_statically_balanced_positions_2d_state import *
from hpp.gepetto import PathPlayer
pp = PathPlayer (fullBody.client.basic, r)
from generate_contact_sequence import *
......
......@@ -13,11 +13,11 @@ import pickle as pickle
from pathlib2 import Path
import generate_muscod_problem as mp
import muscodSSH as ssh
from . import muscodSSH as ssh
from config import *
from check_qp import check_traj_valid
from .check_qp import check_traj_valid
from gen_hrp2_statically_balanced_positions_2d_state import *
from .gen_hrp2_statically_balanced_positions_2d_state import *
from generate_contact_sequence import *
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment