-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #290 from UHHRobotics22-23/doc/top_level
Extending the top level documentation
- Loading branch information
Showing
8 changed files
with
192 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# TAMS Master Project 2022/2023 - Bringup | ||
|
||
This package contains the launch files for the bringup of the robot. | ||
The launch process is described in the top level [README](../README.md). | ||
|
||
## Launch Files | ||
|
||
### marimbabot_ur5_bringup.launch | ||
This file is already configured to work with our setup. | ||
However, the following parameters and code parts may be of interest. Also, for further information you may want to visit [hardware_design](https://github.com/UHHRobotics22-23/hardware_design). | ||
|
||
When using a wifi connection to the mallet, one can set the ip address and port here: | ||
|
||
```xml | ||
<group if="$(eval mallet_holder_type=='flex_double')"> | ||
<!--> ... <--> | ||
<group if="$(arg mallet_joint_wifi)"> | ||
<node name="mallet_hardware_control_node" pkg="marimbabot_hardware" type="mallet_hardware_control_node_wifi" output="screen"> | ||
<!-- Setting device parameter --> | ||
<param name="address" value="192.168.42.1"/> | ||
<param name="port" value="8888"/> | ||
</node> | ||
</group> | ||
<!--> ... <--> | ||
</group> | ||
|
||
``` | ||
|
||
The robot ip address can be set here: | ||
```xml | ||
<include file="$(find ur_robot_driver)/launch/ur_control.launch"> | ||
<!-- Other arguments --> | ||
<arg name="robot_ip" value="192.168.1.12"/> | ||
<!-- Other arguments --> | ||
</include> | ||
|
||
``` | ||
|
||
### marimbabot_bringup.launch | ||
Launches the bringup of the robot. It launches the following packages: | ||
|
||
- marimbabot_vision | ||
- marimbabot_speech | ||
- marimbabot_behavior | ||
- marimbabot_audio | ||
- marimbabot_planning |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# TAMS Master Project 2022/2023 - Msgs | ||
|
||
This package contains all the custom messages and actions used in the project. | ||
|
||
## Actions | ||
|
||
### [HitSequence.action](action/HitSequence.action) | ||
The HitSequence action is used to request the execution of a sequence of hits. It is defined as follows: | ||
|
||
#### Goal Definition: | ||
|
||
- **marimbabot_msgs/HitSequenceElement[] hit_sequence_elements**: An array of HitSequenceElement messages that specify the hits to be played. | ||
#### Result Definition: | ||
|
||
- **time first_note_hit_time**: The absolute time when the first note of the sequence was hit. | ||
- **bool success**: Indicates whether the goal was successfully achieved. | ||
- **uint16 error_code**: | ||
Provides an error code in case of failure | ||
|
||
- - **uint16 SUCCESS = 0**: Successful completion. | ||
- - **uint16 PLANNING_FAILED = 1**: Indicates that the planning process failed. | ||
- - **uint16 EXECUTION_FAILED = 2**: Indicates that the execution of the action failed. | ||
|
||
#### Feedback: | ||
|
||
- **bool playing**: Indicates whether the robot is currently playing, meaning that the goal is still active. | ||
|
||
|
||
### [LilypondAudio.action](action/LilypondAudio.action) | ||
The LilypondAudio action is used to request the playing of an audio piece generated from a Lilypond string. It is defined as follows: | ||
|
||
#### Goal Definition: | ||
|
||
- **std_msgs/String lilypond_string**: A string containing Lilypond notation to be interpreted and played. | ||
#### Result Definition: | ||
|
||
- **bool success**: Indicates whether the audio is assumed to be played successfully. | ||
#### Feedback: | ||
|
||
- **bool in_progress**: Indicates whether the audio is currently being played. | ||
|
||
|
||
## Messages | ||
|
||
The following messages are defined in this package. For further information on the individual messages, please refer to the individual message files. | ||
|
||
### [Command.msg](msg/Command.msg) | ||
This message is used to send commands from the speech node to the behavior node. | ||
Have a look at [README](../marimbabot_speech/README.md#5-command-examples) for more information on the command syntax and examples. | ||
|
||
### [CQTStamped.msg](msg/CQTStamped.msg) | ||
This message contains information of the Constant-Q Transform(CQT). See [README](../marimbabot_audio/README.md#4-pipeline-of-music-note-detection) for more information. | ||
### [HitSequence.msg](msg/HitSequence.msg) | ||
This message contains an array of HitSequenceElement messages. | ||
|
||
### [HitSequenceElement.msg](msg/HitSequenceElement.msg) | ||
This message contains the information single element of a HitSequence message. It includes tone information, the start time of the note, the duration of the note and the loudness of the note. | ||
|
||
### [NoteOnset.msg](msg/NoteOnset.msg) | ||
Used for publish the detect music note. | ||
### [SequenceMatchResult.msg](msg/SequenceMatchResult.msg) | ||
For published the final evaluation of the robot performance | ||
### [Speech.msg](msg/Speech.msg) | ||
For published the transcribed test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
std_msgs/Header header | ||
# Behavior is the behavior to execute, e.g. 'play'. | ||
string behavior | ||
string action | ||
string parameter | ||
|
||
# Action is the action to execute, e.g. 'decrease speed'. May be empty. | ||
string action | ||
|
||
# Parameter is the parameter associated with the action, e.g. '20' when using the action 'decrease speed'. | ||
# This would decrease the speed by 20bpm. | ||
# May be empty, then behavior node will use default setup. | ||
string parameter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
std_msgs/Header header | ||
# identifier that is used by the audio package to identify the sequence | ||
int32 sequence_id | ||
|
||
# list of hit sequence elements | ||
marimbabot_msgs/HitSequenceElement[] hit_sequence_elements |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
std_msgs/Header header | ||
|
||
# the text that was recognized | ||
string text | ||
|
||
# the probability of no speech | ||
float32 no_speech_prob |