-
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.
- Loading branch information
Showing
19 changed files
with
606 additions
and
25 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
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,20 @@ | ||
version: "3" | ||
|
||
services: | ||
simulators: | ||
image: realm_gc:latest | ||
build: | ||
context: . | ||
dockerfile: .docker/Dockerfile | ||
environment: | ||
- DISPLAY=${DISPLAY} # allows GUI access | ||
volumes: | ||
- /tmp/.X11-unix:/tmp/.X11-unix # allows GUI access | ||
- ./realm_gc:/catkin_ws/src/realm_gc # allows access to the ROS package in the realm directory | ||
network_mode: host | ||
privileged: true | ||
stdin_open: true # docker run -i | ||
tty: true # docker run -t | ||
depends_on: | ||
- roscore | ||
command: /bin/bash -c 'source /catkin_ws/devel/setup.bash && roslaunch --wait rgc all_simulators.launch' |
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,26 @@ | ||
<!-- | ||
Launch simulators for two turtlebots and an f1tenth platform | ||
--> | ||
|
||
<launch> | ||
<!-- Start the F1Tenth simulator --> | ||
<!-- <include file="$(find rgc)/launch/tro_f1tenth.launch"> | ||
<arg name="position_topic" default="/vicon/realm_f1tenth/realm_f1tenth"/> | ||
<arg name="control_topic" default="/vesc/high_level/ackermann_cmd_mux/input/nav_0"/> | ||
</include> --> | ||
|
||
<!-- Start the Turtlebot simulators --> | ||
<group ns="turtle1"> | ||
<include file="$(find rgc)/launch/sim/turtlebot_simulator.launch"> | ||
<arg name="position_topic" default="/vicon/realm_turtle_1/realm_turtle_1"/> | ||
<arg name="control_topic" default="/turtle1/cmd_vel"/> | ||
</include> | ||
</group> | ||
|
||
<group ns="turtle2"> | ||
<include file="$(find rgc)/launch/sim/turtlebot_simulator.launch"> | ||
<arg name="position_topic" default="/vicon/realm_turtle_2/realm_turtle_2"/> | ||
<arg name="control_topic" default="/turtle2/cmd_vel"/> | ||
</include> | ||
</group> | ||
</launch> |
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,11 @@ | ||
<!-- This launch file starts simulators for the turtlebot --> | ||
|
||
<launch> | ||
<arg name="position_topic" default="/vicon/realm_turtle0/realm_turtle0"/> | ||
<arg name="control_topic" default="/turtle1/cmd_vel"/> | ||
|
||
<node name="turtlebot_simulator" pkg="rgc_simulator" type="turtlebot_simulator.py" output="screen"> | ||
<param name="position_topic" type="string" value="$(arg position_topic)"/> | ||
<param name="control_topic" type="string" value="$(arg control_topic)"/> | ||
</node> | ||
</launch> |
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
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,4 +1,4 @@ | ||
#!usr/bin/env python | ||
#!/usr/bin/env python3 | ||
"""Define class for robot control """ | ||
import os | ||
|
||
|
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
Oops, something went wrong.