Skip to content

Commit

Permalink
feat: preventing node creation from single file by default
Browse files Browse the repository at this point in the history
  • Loading branch information
simojo committed Jan 27, 2024
1 parent b365bf2 commit 2ea70b1
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/ddpg_flight.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,12 +345,15 @@ def episode_take_action(action):
# To store average reward history of last few episodes
avg_reward_list = []

# NOTE: set to true to launch nodes from this process
launch_simulation_nodes_manually = False
# set up ROS related handles
simulation_nodes.launch_px4()
simulation_nodes.launch_gazebo()
simulation_nodes.launch_clover_services()
simulation_nodes.launch_clover_model()
service_proxies.init()
if launch_simulation_nodes_manually:
simulation_nodes.launch_px4()
simulation_nodes.launch_gazebo()
simulation_nodes.launch_clover_services()
simulation_nodes.launch_clover_model()
service_proxies.init()

for ep in range(total_episodes):

Expand Down

0 comments on commit 2ea70b1

Please sign in to comment.