Skip to content

Commit

Permalink
Fix error in the entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetkillioglu committed Jul 5, 2023
1 parent 5153f80 commit 4eca5c1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,7 @@ _term() {
# Use SIGTERM or TERM, does not seem to make any difference.
trap _term TERM

ROS_FLAGS=""
if [[ ${SIMULATION+x} != "" ]]; then
ROS_FLAGS="use_sim_time:=true ${ROS_FLAGS}"
fi

ros-with-env ros2 run ros2_gremsy gremsy_node --ros-args --remap __ns:=/$DRONE_DEVICE_ID -p com_port:=/dev/ttyUSB0 -p ${ROS_FLAGS} &
ros-with-env ros2 run ros2_gremsy gremsy_node --ros-args --remap __ns:=/$DRONE_DEVICE_ID -p com_port:=/dev/ttyUSB0 &
child=$!

echo "Waiting for pid $child"
Expand Down

0 comments on commit 4eca5c1

Please sign in to comment.