Skip to content

Commit 4e88bb2

Browse files
authored
Modify troubleshooting & instructions for EventSystem (#249)
* Modify troubleshooting & instructions for EventSystem * PR feedback: hierarchy clarification * Precommit fixes
1 parent 7253d64 commit 4e88bb2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

tutorials/pick_and_place/2_ros_tcp.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ To enable communication between Unity and ROS, a TCP endpoint running as a ROS n
148148

149149
> Note: While using the ROS Settings menu is the suggested workflow as of this version, you may still manually create a GameObject with an attached ROSConnection component.
150150
151-
1. Next, we will add a UI element that will allow user input to trigger the `Publish()` function. In the Hierarchy window, right click to add a new UI > Button. Note that this will create a new Canvas parent as well.
151+
1. Next, we will add a UI element that will allow user input to trigger the `Publish()` function. In the Hierarchy window, right click to add a new UI > Button. Note that this will also create a new Canvas parent, as well as an Event System.
152152
> Note: In the `Game` view, you will see the button appear in the bottom left corner as an overlay. In `Scene` view the button will be rendered on a canvas object that may not be visible.
153153

154154
> Note: In case the Button does not start in the bottom left, it can be moved by setting the `Pos X` and `Pos Y` values in its Rect Transform component. For example, setting its Position to `(-200, -200, 0)` would set its position to the bottom right area of the screen.
@@ -208,6 +208,8 @@ ROS and Unity have now successfully connected!
208208

209209
- If the ROS TCP handshake fails (e.g. `ROS-Unity server listening...` printed on the Unity side but no `ROS-Unity Handshake received` on the ROS side), the ROS IP may not have been set correctly in the params.yaml file. Try running `echo "ROS_IP: $(hostname -I)" > src/niryo_moveit/config/params.yaml` in a terminal from your ROS workspace.
210210

211+
- If the UI buttons appear to be unresponsive, such as not responding to clicks, ensure there is an [EventSystem](https://docs.unity3d.com/2020.1/Documentation/Manual/UIE-Events.html) in the scene hierarchy. This should be added automatically when adding UI elements, but if it is not, you can add one to your scene from the Hierarchy window via `(+) > UI > Event System`. You can also access this dropdown from right-clicking in an empty area in the Hierarchy window.
212+
211213
---
212214

213215
## Resources

tutorials/urdf_importer/urdf_appendix.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,8 @@ To address this predicament we have integrated another algorithm to create Conve
374374
- limit
375375
- lower
376376
- upper
377-
378-
377+
378+
379379

380380

381381
## Disable Collision Support

0 commit comments

Comments
 (0)