Comments (5)
And, the CLI also supports it on humble
:
ros2 topic pub /ap/cmd_vel geometry_msgs/msg/TwistStamped "{header: {frame_id: base_link}, twist: {linear: {x: .nan, y: .nan, z: .nan}, angular: {z: 0.01}}}"
from ros2_documentation.
Yeah, I think that is a reasonable thing to document; I'd enhance the table in https://docs.ros.org/en/humble/Concepts/Basic/About-Interfaces.html#field-types to add a "Note" column, or something like that. If you'd like to open a PR to add that, I'd be happy to review it.
from ros2_documentation.
Yeah, I think that is a reasonable thing to document; I'd enhance the table in https://docs.ros.org/en/humble/Concepts/Basic/About-Interfaces.html#field-types to add a "Note" column, or something like that. If you'd like to open a PR to add that, I'd be happy to review it.
It doesn't look like it's actually supported.
In a .msg
:
# NaN (IEE-754 quiet NaN) signifies no data is available at the location.
float64 my_value NaN
c
: error: βnanlβ undeclared (first use in this function)
276 | msg->my_value = nanl;
c++
: error: βnanβ was not declared in this scope
198 | this->my_value= nan;
from ros2_documentation.
Relates to ros2/rosidl#705
from ros2_documentation.
Huh, in the IDL 4.2 spec, it says nothing about special floating point values:
https://www.omg.org/spec/IDL/4.2/PDF
See section 7.2.6.4
.
Then in the DDS Consolidated JSON 1.0 spec, it says that NaN is supported.
https://www.omg.org/spec/DDS-JSON/1.0/PDF
See section 7.3.7.4.8
Numeric values, such as Infinity, -Infinity, and NaN, which as stated in [ECMA-404] cannot be represented as
sequences of digits, shall be represented using the following JSON strings: "inf", "-inf", and "nan".
from ros2_documentation.
Related Issues (20)
- Workshopping a ROS / Gazebo Tutorial Page to Land Under "Related Projects" HOT 14
- Rviz2 can't start. HOT 1
- [Question] ROS1 bridge tutorial proposed for Jazzy
- Restore Python tf2 Time tutorials
- DOC
- Proposal for reshaping Launch tutorials HOT 4
- WARNING: 'any' reference target not found: latest_release HOT 1
- pip install fails with `error: externally-managed-environment` HOT 3
- `Writing a simple service and client (Python)`: regular spin in the tuto HOT 2
- Proposal for a ROS 2 Skill Tree on ROS2 Docs HOT 1
- Install ROS 2 on Jetson nano HOT 5
- installation repodata returns 404 (Jazzy) HOT 1
- prebuilt html artifacts can help the review for each PR? HOT 3
- Add artifact availability in contribution guide HOT 3
- Add tutorial how to allow and override the QoS configuration when node starts. HOT 2
- Introducing-Turtlesim seems not to work (Beginner's problem solved?) HOT 4
- Add `Reading from a bag file (Python)` tutorial
- Tutorial CLI Tools - Configuring Environment - Zenoh RMW additions HOT 1
- The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654 HOT 1
- Enable bot HTML artifacts comment on PRs from fork HOT 4
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 ros2_documentation.