-
Notifications
You must be signed in to change notification settings - Fork 21
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
<feat> implemented Liner Quadratic Regulator #500
base: develop
Are you sure you want to change the base?
Conversation
control/velocity_controller_lqr/config/param_velocity_controller_lqr.yaml
Outdated
Show resolved
Hide resolved
control/velocity_controller_lqr/launch/velocity_controller_lqr.launch.py
Outdated
Show resolved
Hide resolved
control/velocity_controller_lqr/velocity_controller_lqr/velocity_controller_lqr_lib.py
Outdated
Show resolved
Hide resolved
control/velocity_controller_lqr/velocity_controller_lqr/velocity_controller_lqr_lib.py
Outdated
Show resolved
Hide resolved
control/velocity_controller_lqr/velocity_controller_lqr/velocity_controller_lqr_lib.py
Outdated
Show resolved
Hide resolved
control/velocity_controller_lqr/velocity_controller_lqr/velocity_controller_lqr_lib.py
Outdated
Show resolved
Hide resolved
control/velocity_controller_lqr/velocity_controller_lqr/velocity_controller_lqr_lib.py
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything else was nice : )
|
||
ament_python_install_package(${PROJECT_NAME}) | ||
|
||
#install python scripts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you comment here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what are you doing here?
control/velocity_controller_lqr/scripts/velocity_controller_lqr_node.py
Outdated
Show resolved
Hide resolved
controller is not None | ||
) # Simple test to ensure the controller initializes | ||
|
||
def test_ssa(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should have doc-string to explain the tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then we agree to disagree.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets go
import math as math | ||
|
||
import numpy as np | ||
|
||
import control as ct | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you have so much space here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point
control/velocity_controller_lqr/velocity_controller_lqr/velocity_controller_lqr_lib.py
Show resolved
Hide resolved
8ee813a
to
9a171f1
Compare
<test_depend>ament_lint_auto</test_depend> | ||
<test_depend>ament_lint_common</test_depend> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be removed. Linting is tested through pre-commit hooks
def test_final(self): | ||
print("¯\_(ツ)_/¯ ehh good enough pass anyway") | ||
pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
never
requirements.sh
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This bash script will be used resolve dependencies not supported by rosdep.
control/velocity_controller_lqr/launch/velocity_controller_lqr.launch.py
Outdated
Show resolved
Hide resolved
control/velocity_controller_lqr/scripts/velocity_controller_lqr_node.py
Outdated
Show resolved
Hide resolved
control/velocity_controller_lqr/scripts/velocity_controller_lqr_node.py
Outdated
Show resolved
Hide resolved
control/velocity_controller_lqr/scripts/velocity_controller_lqr_node.py
Outdated
Show resolved
Hide resolved
control/velocity_controller_lqr/velocity_controller_lqr/velocity_controller_lqr_lib.py
Outdated
Show resolved
Hide resolved
def main(args=None): # main function | ||
rclpy.init(args=args) | ||
node = LinearQuadraticRegulator() | ||
rclpy.spin(node) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using [MultiThreadedExecutor]https://docs.ros.org/en/humble/Concepts/Intermediate/About-Executors.htmll)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why htmll is it like new html
Fixed everything, AUV works flawlessly now.