From 24d9bba7e0cd5c669620d6fe2b64b5af91ff2933 Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Mon, 27 Apr 2020 15:40:02 -0400 Subject: [PATCH] Dos2Unix Instructions - Add troubleshooting section to gear.md that discusses using dos2unix if there are newline character issues - Remove commented out commands from run_all.sh --- docs/gear.md | 8 ++++++++ src/rrrobot_ws/run_all.sh | 12 ------------ 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/docs/gear.md b/docs/gear.md index df5712b..0ace7c6 100644 --- a/docs/gear.md +++ b/docs/gear.md @@ -150,3 +150,11 @@ In terminal 1, run the script that will build all components and run the nodes. #### Terminal 2 When a new item is spawned after the arm drops off the previous item, the conveyor belt must be manually started again using `rosservice call /ariac/conveyor/control "power: 100"` so that the item moves to the depth camera and the process can continue. You can do this in a new terminal since terminal 1 is running all of the simulation nodes. + +#### Troubleshooting + +If you encounter issues with newline characters when attempting to run scripts, use the `dos2unix` tool to convert them to linux style newline characters. +These errors usually look like `/bin/bash^M: bad interpreter: No such file or directory` or `env: python\r: No such file or directory`. + +- `sudo apt-get install -y dos2unix` +- `dos2unix ` diff --git a/src/rrrobot_ws/run_all.sh b/src/rrrobot_ws/run_all.sh index 2e68849..439c66a 100755 --- a/src/rrrobot_ws/run_all.sh +++ b/src/rrrobot_ws/run_all.sh @@ -46,15 +46,3 @@ sleep 1 rosservice call /ariac/arm1/gripper/control "enable: true" sleep 1 rosservice call /ariac/arm1/gripper/control "enable: false" - -#/app/rrrobot_ws/src/rrrobot/scripts/rrrobot_run_no_build.sh & -# cd /app/rrrobot_ws/src/rrrobot/src -# python3 cv_model.py & -# cd /app/rrrobot_ws/devel/lib/rrrobot -# ./rrrobot_node & -# ./depth_camera_node >> /dev/null & -# ./object_spawner_node & -# ./arm_controller_node & -# rostopic echo /arm_controller/destination & -# rostopic echo /desired_grasp_pose & -# rostopic echo /cv_model &