Comments (11)
Hi!
I tried to apply the tutorial on an Android smartphone and a HoloLens 2.. both builds show the same strange behavior, that the robot arm is randomly jumping. Any solution for that? HoloLens 2 seems to connect to the ROS node (I get the request in the ROS terminal), but with Android this does not work.
Thank you!
Hi, Dietmar @siegeledietmar , could you please show more details about how to apply this tutorial on hololens 2? I plan to build this tutorial ROS–Unity Integration: Publisher . But after click the build button on unity, there are many error shown below:
Assets\RosMessages\RoboticsDemo\msg\PosRot.cs(6,7): error CS0246: The type or namespace name 'RosMessageGeneration' could not be found (are you missing a using directive or an assembly reference?) Assets\RosMessages\RoboticsDemo\msg\UnityColor.cs(6,7): error CS0246: The type or namespace name 'RosMessageGeneration' could not be found (are you missing a using directive or an assembly reference?) Assets\RosMessages\RoboticsDemo\msg\UnityColor.cs(10,31): error CS0246: The type or namespace name 'Message' could not be found (are you missing a using directive or an assembly reference?) Assets\Scripts\RosPublisherExample.cs(10,5): error CS0246: The type or namespace name 'ROSConnection' could not be found (are you missing a using directive or an assembly reference?) Assets\RosMessages\RoboticsDemo\msg\PosRot.cs(43,38): error CS0115: 'PosRot.SerializationStatements()': no suitable method found to override .... .... ....
In Ros Sharp UWP version, I find these are integrated in some plugins, such as RosBridgeClientUWP.dll, etc. I don't know how it works in this project on hololens 2. So could you show the details about how to apply this tutorial on hololens 2? Thank you very much!
from unity-robotics-hub.
Hi @siegeledietmar,
Are you running the Unity build on Android and HoloLens? Or the ROS side? Or both?
Thanks,
Sarah
from unity-robotics-hub.
I am running the Unity build on Android and HoloLens 2. The ROS side is running as in the tutorial. When I run it in the Unity Editor it works perfect, when I compile the same Scene, it shows this strange behaviour. I use the XRSDK.
from unity-robotics-hub.
To be more specific, it happens to me for the Pick and Place tutorial.
from unity-robotics-hub.
Hi @siegeledietmar,
Thank you for the feedback. We are looking into the issue. In the meantime, may I confirm a couple of things with you:
- Does the "random jumping" issue happen in Part 1 of the Pick and Place tutorial or the Part 3?
- You've mentioned an issue that the Unity build cannot communicate with the ROS nodes properly when running on Android. Does it happen in Pick and Place tutorial too?
Thanks,
Peifeng
from unity-robotics-hub.
- The issue (for me it seems that the damping and stiffness effects this) can be obtained in Part 1 and 3. It does not appear when running in the Play mode.
- The communication to ROS under Android is not working in the Pick and Place tutorial. In the ROS–Unity Integration tutorial it works fine.
from unity-robotics-hub.
The communication problem with Android was my fault, that is working fine now, sorry about that..
The misbehavior of the robot arm exists still one HoloLens 2 and Android.
from unity-robotics-hub.
Get you. We are trying to reproduce the issue. Would you mind to share a gif or a short video about what the "random jumping" looks like? It will be very helpful for us to identify the root cause. Thanks!
from unity-robotics-hub.
I found in the meantime a simple fix:
Stiffness and Damping values are only set in the Controller script. If I add these values to the X Drive in all Articulation Body it works also as intended on HoloLens and Android.
from unity-robotics-hub.
Thank you, @siegeledietmar for the feedback. It is great that you have found a workaround.
The stiffness and damping values set in the Controller were supposed to be set to each of the articulation bodies in Start() of the Play, and there was a bug in the URDF-Importer before that didn't configure the damping values. The bug has been fixed now in this PR and the Controller.cs.
from unity-robotics-hub.
I am going to close this issue since the bug is fixed. Please feel free to reopen it if there are more questions or comments. Thank you!
from unity-robotics-hub.
Related Issues (20)
- Reporting a vulnerability
- More than one message was registered as "sensor_msgs/Image"
- WebGL build HOT 1
- ROS Connection script doesn't work
- Extraction of MessageQueue full via variable Bug in msg getting duplicated.
- Unity doesn't show point cloud
- Project lost when updating Unity Hub
- ERROR: failed to solve: process "/bin/sh -c sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys HOT 2
- I want to use unity to connect to multiple ROS systems, but it doesn't seem to work HOT 3
- Lidar Scan Visualization Inconsistent with Gazebo HOT 1
- unity_robotics_demo_msgs failing for colcon build HOT 3
- "unknown message class 'unity_robotics_demo_msgs/PosRot'"
- failed to deserialize ROS message: Fast CDR exception deserializing message of type std_srvs::srv::dds_::Empty_Response_.
- Continuously connecting and disconnecting while throwing exceptions on server side HOT 1
- RosConnection.Update() spiking to >180ms execution. This thread-blocking causes bad frame spikes when Playing. HOT 2
- error creating docker file:
- ROSConnection.cs:854
- Communicate with the URDF robot model without using ROS
- import robot's urdf without color
- Connected but fast Disconnected and then recurrent both, the terminal info ModuleNotFoundError: No module named 'unity_robotics_demo_msgs.unity_robotics_demo_msgs_s__rosidl_typesupport_c' HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unity-robotics-hub.