Comments (7)
Before diving into implementation details, I like to review the desired behaviour:
- Deadman button released -> immediate stop (safety feature)
- Deadman button pressed & stick at zero-position
- User released the joystick -> slow down
- User took over control from navigation -> full stop
- Optional: Brake button pressed -> full stop (safety feature)
I would like to avoid adding more buttons, since we are already running low one them (and the high-speed mode (#99) will use another one). However after thinking about the above cases I don't know how to implement it cleanly without (case 1. vs. 2.i. above).
Regarding the implementation I'm considering add a second publisher to joyop, which sends out a message when
- The deadman button has been released after being pressed. OR
- The brake button is pressed.
Thoughts?
from yujin_ocs.
Regarding that publisher, for Gophers we could either use the emergency stop (an empty message sub) or another cmd vel publisher, which sends its message to a "unsmoothed" topic.
I will put up an implementation for the latter, since it should be more general.
from yujin_ocs.
The problem with the clean implementation is that if there is navigation running and you want to do a full stop, it will only full stop for a little bit before the navigation might kick in?
from yujin_ocs.
If you want to force a full stop during navigation you would need to keep the deadman pressed to take over control and then the brake until its stops. Navigation will not be able to take over again until the deadman is released.
If you just press the deadman (as we do currently) the robot will slowly come to a halt (as defined by the deceleration factor).
All this assuming the user is not touching the joystick.
from yujin_ocs.
I don't like that.
Is there a problem with the brake always being pushable without the deadman?
from yujin_ocs.
Added your suggestion. Brake can now always be triggered - independent of the motors being enabled or the deadman button being pressed.
from yujin_ocs.
Implemented by f23f009.
from yujin_ocs.
Related Issues (20)
- [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
- OdometryHelper when odom not yet available HOT 7
- [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.