Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
H harvest-automation
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Henrik Andreasson
  • harvest-automation
  • Wiki
  • ros services

ros services · Changes

Page history
Update ros services authored Jul 30, 2020 by Nicholas Shindler's avatar Nicholas Shindler
Hide whitespace changes
Inline Side-by-side
Showing with 1 addition and 1 deletion
+1 -1
  • ros-services.md ros-services.md +1 -1
  • No files found.
ros-services.md
View page @ 8bf2311a
......@@ -6,7 +6,7 @@ When a service is called the data is passed to the robot using the [writer](writ
## Creating A Writer for a service
The writer child class for a ros service is different the the writer child child class for a controller.
The writer child class for a ros service is different the the writer child child class for a controller. ROS Service child classes are put in the `Services` directory and the classes that are in that directory should be used as reference when creating new ros services.
### creating the class
To create a new function to send data to the HV Robot, the Writer class must be extended. the child class needs to have a `__init__()` function where the *service* is defined and the probe name is passed to the parent constructor; and a **callback** function (can be named anything since it is declared with the service) where the data is formatted to be passed to the robot over the probes using the Writer callback method, and a `stop` function that ends the service and is called when the application is shutdown.
......
Clone repository
  • client
  • Home
  • probes
  • reader
  • ros services
  • setup
  • writer