This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
cs:simulator:bridge:start [2016/12/12 15:47] Dustin Crossman created |
cs:simulator:bridge:start [2022/04/15 02:38] Chris Nathman [/position] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Simulator Bridge ====== | ====== Simulator Bridge ====== | ||
- | The simulator bridge is ROS node which subscribes to the /gazebo/model_states message that gazebo publishes. The model states message contains position, orientation, linear velocity, and angular velocity for each model in the simulator. This includes the sub, the top of the water, the start gate, the pinger, etc. The simulator bridge is responsible for taking the model states input and outputting the following information on the specified topics: | + | The simulator bridge is ROS node which subscribes to the /gazebo/model_states message that gazebo publishes. The model states message ([[http://docs.ros.org/indigo/api/gazebo_msgs/html/msg/ModelStates.html|ModelStates]]) contains position, orientation, linear velocity, and angular velocity for each model in the simulator. This includes the sub, the top of the water, the start gate, the pinger, etc. The simulator bridge is responsible for taking the model states input and outputting the following information on the specified topics: |
- | * The subs true position (/position) | + | |
- | * The subs true orientation (/orientation) | + | ==== /position ==== |
- | * The subs true orientation in roll, pitch, yaw (/orientation/pretty) | + | Message: [[https://docs.ros2.org/foxy/api/geometry_msgs/msg/Vector3.html | geometry_msgs/Vector3 ]] \\ |
- | * The subs true depth (/depth) | + | The true current position of the sub, given as x, y, z. |
- | * A list of the true positions of the pool obstacles (/obstacles/positions) | + | |
- | * Simulated hydrophone system output (/hydrophone/30khz/delta) | + | ==== /orientation ==== |
+ | Message: [[https://docs.ros2.org/foxy/api/geometry_msgs/msg/QuaternionStamped.html | geometry_msgs/QuaternionStamped ]] \\ | ||
+ | The true current orientation of the sub, given as quaternion. | ||
+ | |||
+ | ==== /orientation/pretty ==== | ||
+ | Message: [[https://github.com/PalouseRobosub/robosub/blob/master/msg/Euler.msg | robosub/Euler ]] \\ | ||
+ | The true current orientation of the sub, given as roll, pitch, yaw. This is for human readability only. Any nodes wishing to make use of this data should subscribe to the /orientation topic. | ||
+ | |||
+ | ==== /depth ==== | ||
+ | Message: [[https://github.com/PalouseRobosub/robosub/blob/master/msg/depth_stamped.msg | robosub/DepthStamped ]] \\ | ||
+ | The true current depth of the sub, calculated by subtracting the z position of the sub from the z position of the top of the water. | ||
+ | |||
+ | |||
+ | ==== /obstacles/positions ==== | ||
+ | Message: [[https://github.com/PalouseRobosub/robosub/blob/master/msg/ObstaclePosArray.msg | robosub/ObstaclePosArray ]] \\ | ||
+ | The true current position of a list of obstacles in the pool. This list is taken from the [[https://github.com/PalouseRobosub/robosub_simulator/blob/master/param/obstacles.yaml | robosub_simulator/obstacles.yaml ]]. | ||
+ | |||
+ | ==== /hydrophone/30khz/delta ==== | ||
+ | Message: [[https://github.com/PalouseRobosub/robosub/blob/master/msg/HydrophoneDeltas.msg | robosub/HydrophoneDeltas ]] \\ | ||
+ | Simulated hydrophone system output. This is calculated based on the position of the subs hydrophones and the pinger. |