Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cs4313_utilities
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CS4313
cs4313_utilities
Commits
31ec0412
Commit
31ec0412
authored
7 years ago
by
Davis, Duane T
Browse files
Options
Downloads
Patches
Plain Diff
Updated classes to "new" style (inherit from object)
parent
40c38b3c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/cs4313_utilities/robot.py
+1
-1
1 addition, 1 deletion
src/cs4313_utilities/robot.py
src/cs4313_utilities/shared_robot_classes.py
+3
-3
3 additions, 3 deletions
src/cs4313_utilities/shared_robot_classes.py
with
4 additions
and
4 deletions
src/cs4313_utilities/robot.py
+
1
−
1
View file @
31ec0412
...
...
@@ -17,7 +17,7 @@ import cs4313_utilities.shared_robot_classes as src
import
cs4313_utilities.quaternion_math
as
quat
class
SimpleRobot
:
class
SimpleRobot
(
object
)
:
'''
Class for maintaining state information for a single ground robot. Also
includes the subscription callbacks and publisher methods for interacting
with ROS and the methods required to implement behaviors. The assumed
...
...
This diff is collapsed.
Click to expand it.
src/cs4313_utilities/shared_robot_classes.py
+
3
−
3
View file @
31ec0412
...
...
@@ -22,7 +22,7 @@ LINE_FOLLOWING = 5
WALL_FOLLOWING
=
6
class
RobotState
:
class
RobotState
(
object
)
:
'''
Class for maintaining state information for a single ground robot
State includes positional data (x, y, theta) and velocity
(xDot, yDot, thetaDot). This class does not include any member
...
...
@@ -39,7 +39,7 @@ class RobotState:
self
.
velocity
=
[
initVelocity
[
0
],
initVelocity
[
1
],
initVelocity
[
2
]
]
class
LaserData
:
class
LaserData
(
object
)
:
'''
Class for maintaining a single iteration of laser scan data
Scan data includes the minimum and maximum scan angles,
angular increment, and maximum range. Individual range readings
...
...
@@ -150,7 +150,7 @@ class LaserData:
class
DirectedLine
:
class
DirectedLine
(
object
)
:
'''
Container class for a directed line. Contains information about points
on the line (start and end), the direction of the line (theta), and the
parametric (normal form: phi and rho) parameters of the line
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment