Skip to content

Commit 458d215

Browse files
authored
Merge pull request #104 from BerkeleyAutomation/fix_generic_ami_launch
added asian pacific amis and dependencies needed for generic ubuntu images Former-commit-id: b302895
2 parents 2dd5426 + 1338573 commit 458d215

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

fogros2/fogros2/aws_cloud_instance.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ def create(self):
116116
self.info(flush_to_disk=True)
117117
self.connect()
118118
# Uncomment out the next three lines if you are not using a custom AMI
119-
#self.install_ros()
120-
#self.install_colcon()
121-
#self.install_cloud_dependencies()
119+
self.install_ros()
120+
self.install_cloud_dependencies()
121+
self.install_colcon()
122122
self.push_ros_workspace()
123123
self.info(flush_to_disk=True)
124124
self._is_created = True

fogros2/fogros2/cloud_instance.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ def pip_install(self, args):
129129

130130
def install_cloud_dependencies(self):
131131
self.apt_install("wireguard unzip docker.io python3-pip ros-humble-rmw-cyclonedds-cpp")
132+
self.pip_install("boto3")
133+
self.pip_install("paramiko")
134+
self.pip_install("scp")
135+
self.pip_install("wgconfig")
132136

133137
def install_ros(self):
134138
# setup sources
@@ -159,7 +163,7 @@ def install_ros(self):
159163
self.scp.execute_cmd("export LANG=en_US.UTF-8")
160164

161165
# install ros2 packages
162-
# self.apt_install(f"ros-{self.ros_distro}-desktop")
166+
self.apt_install(f"ros-{self.ros_distro}-desktop")
163167

164168
# source environment
165169
self.scp.execute_cmd(f"source /opt/ros/{self.ros_distro}/setup.bash")

fogros2_examples/launch/talker.auto_aws.launch.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,13 @@
3838

3939
def generic_ubuntu_ami():
4040
return {
41-
"us-west-1": { "ami_image": "ami-01154c8b2e9a14885" },
42-
"us-west-2": { "ami_image": "ami-0ddf424f81ddb0720" },
43-
"us-east-1": { "ami_image": "ami-08d4ac5b634553e16" },
44-
"us-east-2": { "ami_image": "ami-0960ab670c8bb45f3" },
41+
"us-west-1": { "ami_image": "ami-02ea247e531eb3ce6" },
42+
"us-west-2": { "ami_image": "ami-017fecd1353bcc96e" },
43+
"us-east-1": { "ami_image": "ami-08c40ec9ead489470" },
44+
"us-east-2": { "ami_image": "ami-097a2df4ac947655f" },
45+
"ap-northeast-1": { "ami_image": "ami-03f4fa076d2981b45" },
46+
"ap-northeast-2": { "ami_image": "ami-0e9bfdb247cc8de84" },
47+
"ap-northeast-3": { "ami_image": "ami-08c2ee02329b72f26" },
4548
}
4649

4750
def generate_launch_description():

0 commit comments

Comments
 (0)