Repository navigation
feat: add ARUSSim launch without SLAM using ground truth (ideal_slam) - #100
Open
Marcos-Valera wants to merge 2 commits into
Open
Marcos-Valera wants to merge 2 commits into
Marcos-Valera wants to merge 2 commits into
Conversation
carmenmenendezda
requested changes
Nov 9, 2026
| @@ -0,0 +1,5 @@ | |||
| ideal_slam: | |||
| ros__parameters: | |||
| sensor_max_dist: 40.0 # m Cones farther than this are not added to the map (lidar_max_dist) | |||
Contributor
There was a problem hiding this comment.
take care, it is seem that we see so much than before
| min_lap_distance_ = this->get_parameter("min_lap_distance").as_double(); | ||
|
|
||
| tf_broadcaster_ = std::make_shared<tf2_ros::TransformBroadcaster>(this); | ||
| map_pub_ = this->create_publisher<sensor_msgs::msg::PointCloud2>("/slam/map", 10); |
|
|
||
| tf_broadcaster_ = std::make_shared<tf2_ros::TransformBroadcaster>(this); | ||
| map_pub_ = this->create_publisher<sensor_msgs::msg::PointCloud2>("/slam/map", 10); | ||
| lap_count_pub_ = this->create_publisher<std_msgs::msg::Int16>("/slam/lap_count", 10); |
| tpl_sub_ = this->create_subscription<std_msgs::msg::Bool>( | ||
| "/arussim/tpl_signal", 10, std::bind(&IdealSlam::tpl_callback, this, std::placeholders::_1)); | ||
| reset_sub_ = this->create_subscription<std_msgs::msg::Bool>( | ||
| "/arussim/reset", 1, [this](std_msgs::msg::Bool::SharedPtr) { reset(); }); |
|
|
||
| geometry_msgs::msg::TransformStamped tf; | ||
| tf.header.stamp = this->now(); | ||
| tf.header.frame_id = "arussim/world"; |
| cone.z = track_[i].z; | ||
| cone.data[3] = 1.0f; | ||
| // Like the simulated perception, only blue and yellow are colored (orange and TPL cones are uncolored) | ||
| cone.color = (track_[i].color == 0 || track_[i].color == 1) ? track_[i].color : -1; |
Contributor
There was a problem hiding this comment.
the slam did not decide the color. Our planning decides it when pass through them
Contributor
There was a problem hiding this comment.
I am not sure what these lines do
Contributor
There was a problem hiding this comment.
it is make more sense to make the launch on common_meta and do not change unnecessary code. Usually we use arussim's launch when car will not run for example stats
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds sim_no_slam_launch.py and an ideal_slam node that replaces graph_slam using the simulator ground truth