Skip to content

Commit 9d2c7fc

Browse files
committed
Remove source
1 parent 9890237 commit 9d2c7fc

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

manager/manager/launcher/launcher_gzsim_view.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ def run(self, config_file, callback):
2929
if config_file is None:
3030
config_file = "/opt/jderobot/Launchers/visualization/default.config"
3131

32-
enviroment = "source /.env;"
3332
# Configure browser screen width and height for gz GUI
3433
gzclient_config_cmds = f"sed -i 's/<width>.*<\/width>/<width>{self.width}<\/width>/; s/<height>.*<\/height>/<height>{self.height}<\/height>/' {config_file};"
3534

@@ -39,12 +38,12 @@ def run(self, config_file, callback):
3938
self.display, self.internal_port, self.external_port, DRI_PATH
4039
)
4140
# Write display config and start gzclient
42-
gzclient_cmd = f"{enviroment}export DISPLAY={self.display}; {gzclient_config_cmds} export VGL_DISPLAY={DRI_PATH}; vglrun gz sim -g -v4 --gui-config {config_file}"
41+
gzclient_cmd = f"export DISPLAY={self.display}; {gzclient_config_cmds} export VGL_DISPLAY={DRI_PATH}; vglrun gz sim -g -v4 --gui-config {config_file}"
4342
else:
4443
# Starts xserver, x11vnc and novnc
4544
self.gz_vnc.start_vnc(self.display, self.internal_port, self.external_port)
4645
# Write display config and start gzclient
47-
gzclient_cmd = f"{enviroment}export DISPLAY={self.display}; {gzclient_config_cmds} gz sim -g -v4 --gui-config {config_file}"
46+
gzclient_cmd = f"export DISPLAY={self.display}; {gzclient_config_cmds} gz sim -g -v4 --gui-config {config_file}"
4847

4948
gzclient_thread = DockerThread(gzclient_cmd)
5049
gzclient_thread.start()

manager/manager/launcher/launcher_robot_ros2_api.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ def run(self, robot_pose, callback):
2222

2323
logging.getLogger("roslaunch").setLevel(logging.CRITICAL)
2424

25-
enviroment = "source /.env;"
26-
2725
xserver_cmd = f"/usr/bin/Xorg -quiet -noreset +extension GLX +extension RANDR +extension RENDER -logfile ./xdummy.log -config ./xorg.conf :0"
2826
xserver_thread = DockerThread(xserver_cmd)
2927
xserver_thread.start()
@@ -33,10 +31,10 @@ def run(self, robot_pose, callback):
3331

3432
if ACCELERATION_ENABLED:
3533
exercise_launch_cmd = (
36-
f"{enviroment}export VGL_DISPLAY={DRI_PATH}; vglrun {ROBOT_POSE} ros2 launch {self.launch_file}"
34+
f"export VGL_DISPLAY={DRI_PATH}; vglrun {ROBOT_POSE} ros2 launch {self.launch_file}"
3735
)
3836
else:
39-
exercise_launch_cmd = f"{enviroment}{ROBOT_POSE} ros2 launch {self.launch_file}"
37+
exercise_launch_cmd = f"{ROBOT_POSE} ros2 launch {self.launch_file}"
4038

4139
exercise_launch_thread = DockerThread(exercise_launch_cmd)
4240
exercise_launch_thread.start()

0 commit comments

Comments
 (0)