Difference between revisions of "HamsterCommands"

From cogniteam
Jump to: navigation, search
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
[[Category:HamsterV6]]
 
[[Category:HamsterV5]]
 
[[Category:HamsterV5]]
 
[[Category:HamsterV4]]
 
[[Category:HamsterV4]]
 +
[[Category:HamsterV7]]
 +
[[Category:HamsterV7I]]
 +
[[Category:HamsterV7N]]
 
[[Category:Hamster]]
 
[[Category:Hamster]]
  
 
Command list for terminal:
 
Command list for terminal:
  
<strong>1. Start command for autonomus mode</strong>
+
<strong>1. Start command for autonomous mode</strong>
 
<syntaxhighlight lang="bash" line='line'>
 
<syntaxhighlight lang="bash" line='line'>
 
rostopic pub /decision_making/agent(PUT_YOUR_AGENT_NUMBER)/events std_msgs/String "data: 'RESUME'"
 
rostopic pub /decision_making/agent(PUT_YOUR_AGENT_NUMBER)/events std_msgs/String "data: 'RESUME'"
 
</syntaxhighlight>
 
</syntaxhighlight>
  
<strong>2. Stop command for autonomus mode</strong>
+
'''OR for hamster V7'''
 +
 
 +
<syntaxhighlight lang="bash" line='line'>
 +
rostopic pub /agent(PUT_YOUR_AGENT_NUMBER)/commands/wandering/enable std_msgs/Bool "data: true"
 +
</syntaxhighlight>
 +
 
 +
<strong>2. Stop command for autonomous mode</strong>
 
<syntaxhighlight lang="bash" line='line'>
 
<syntaxhighlight lang="bash" line='line'>
 
rostopic pub /decision_making/agent(PUT_YOUR_AGENT_NUMBER)/events std_msgs/String "data: 'PAUSE'"
 
rostopic pub /decision_making/agent(PUT_YOUR_AGENT_NUMBER)/events std_msgs/String "data: 'PAUSE'"
 +
</syntaxhighlight>
 +
 +
'''OR for hamster V7'''
 +
 +
<syntaxhighlight lang="bash" line='line'>
 +
rostopic pub /agent(PUT_YOUR_AGENT_NUMBER)/commands/wandering/enable std_msgs/Bool "data: false"
 +
</syntaxhighlight>
 +
 +
<strong>3. Mapping mode</strong>
 +
<syntaxhighlight lang="bash" line='line'>
 +
rostopic pub /mapping_command std_msgs/String "data: 'slam'"
 +
</syntaxhighlight>
 +
 +
<strong>4. Localization mode</strong>
 +
<syntaxhighlight lang="bash" line='line'>
 +
rostopic pub /mapping_command std_msgs/String "data: 'localization'"
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest revision as of 15:19, 5 January 2021


Command list for terminal:

1. Start command for autonomous mode <syntaxhighlight lang="bash" line='line'> rostopic pub /decision_making/agent(PUT_YOUR_AGENT_NUMBER)/events std_msgs/String "data: 'RESUME'" </syntaxhighlight>

OR for hamster V7

<syntaxhighlight lang="bash" line='line'> rostopic pub /agent(PUT_YOUR_AGENT_NUMBER)/commands/wandering/enable std_msgs/Bool "data: true" </syntaxhighlight>

2. Stop command for autonomous mode <syntaxhighlight lang="bash" line='line'> rostopic pub /decision_making/agent(PUT_YOUR_AGENT_NUMBER)/events std_msgs/String "data: 'PAUSE'" </syntaxhighlight>

OR for hamster V7

<syntaxhighlight lang="bash" line='line'> rostopic pub /agent(PUT_YOUR_AGENT_NUMBER)/commands/wandering/enable std_msgs/Bool "data: false" </syntaxhighlight>

3. Mapping mode <syntaxhighlight lang="bash" line='line'> rostopic pub /mapping_command std_msgs/String "data: 'slam'" </syntaxhighlight>

4. Localization mode <syntaxhighlight lang="bash" line='line'> rostopic pub /mapping_command std_msgs/String "data: 'localization'" </syntaxhighlight>