Comments (7)
fyi @bit-pirate
from yujin_ocs.
Updated the description.
The problem mainly is that our trajectory controller uses the current odom and the past issued commands to estimate where the robot will be in the future.
This estimate is then passed to the local planner which leads to the local planner running into problems because the pose is faulty (a non-normalized quaternion as orientation)
from yujin_ocs.
I'll catch this for now by checking for a non-normalized quaternion.
Maybe this is the actual intent behind the default quaternion constructor leading to an invalid quaternion (or rather not normalized).
Maybe close this..?
from yujin_ocs.
Sending out a non-normalised quaternion and then requiring a user to interpret that as uninitialised would be quite bad design. There are much easier ways to help a user understand its uninitialised than that.
Initialising it as well with [0 0 0 1]
would also be quite bad design. There are valid use cases where the user would need to know if it's initialised or not, and that is not enough information for those cases.
I'd say the cleanest solution is to have the odometry in a std shared pointer which only gets initialised after it's got data (user can check the shared pointer himself) and then move the position/velocity processing methods to library functions. Separate data collection and data processing concerns.
Otherwise use exceptions in each method for when it's uninitialised. Or a combination of the shared pointer/exception idea.
Keep in mind that exceptions are usually an expensive option. For control systems I typically only take advantage of their usefulness in constructor or init functions.
from yujin_ocs.
I don't think there is anything special about these classes - I just pulled them from your clrrt just after you finished your master's period so I could re-use them in various places.
Feel free to take ownership of what is in this package.
from yujin_ocs.
Ohh, so it's my shitty code. I see..
from yujin_ocs.
Fixed with pr #119
from yujin_ocs.
Related Issues (20)
- [joyop & smoother] full stop vs. slowing down HOT 7
- [joyop] extend magic button relay scripts to support axis
- I want to know how to use the yocs_waypoints navi package ,launch the xxx.launch failed HOT 1
- [smoother] do not subscribe to unused robot_feedback topics
- Add linear.y to velocity_smoother HOT 1
- [yocs_waypoint_provider] doesn't work
- yujin_ocs/yocs_velocity_smoother/src/velocity_smoother_nodelet.cpp's velocity code HOT 2
- Still maintained? HOT 1
- yocs_velocity_smoother for holonomic robot
- [yocs_cmd_vel_mux] Topics are in private namespace
- [smoother] Melodic release please HOT 1
- Occasional yocs_cmd_vel_mux initialization failure
- velocity_smoother doesnot smooth linear.x
- yocs_velocty_smoother, The output velocity is not smooth at beginning stage, there is a small peak
- Release for ROS noetic HOT 2
- Turtlebot3
- CMake warning when compiling yocs_cmd_vel_mux in Ubuntu 20.04 / ROS Noetic
- in ROS2 melodic+windows11 yocs_cmd_vel_mux install problem
- Questions about Navigation
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 yujin_ocs.