Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed code #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion controller_learning/iterative_learning_trajectories.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import time
import numpy as np
import rospy
from ControllerLearning import TrajectoryLearning
from src.ControllerLearning import TrajectoryLearning
from std_msgs.msg import Bool
from common import update_mpc_params, setup_sim, random_replace, initialize_vio

Expand Down
3 changes: 3 additions & 0 deletions controller_learning/src/ControllerLearning/TrajectoryBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
import numpy as np
import rospy
from nav_msgs.msg import Odometry
# from quadrotor_msgs.msg import ControlCommand
import sys
sys.path.insert(0,'/home/archit/drone_acrobatics_ws/catkin_dda/devel/lib/python3/dist-packages')
from quadrotor_msgs.msg import ControlCommand
from quadrotor_msgs.msg import TrajectoryPoint
from sensor_msgs.msg import PointCloud
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,20 @@
import numpy as np
import rospy
from nav_msgs.msg import Odometry
from quadrotor_msgs.msg import ControlCommand

from std_msgs.msg import Bool
from std_msgs.msg import Empty

import sys
sys.path.insert(1,'/home/archit/drone_acrobatics_ws/catkin_dda/devel/lib/python3/dist-packages')
from quadrotor_msgs.msg import ControlCommand

from .TrajectoryBase import TrajectoryBase, TRACK_NUM_NORMALIZE





class TrajectoryLearning(TrajectoryBase):
def __init__(self, config, mode):
super(TrajectoryLearning, self).__init__(config, mode)
Expand Down