Closed spam-12345 closed 3 years ago
It is a Quality of Service probleme...
Changed the navsat subscriber in the navsat_plugin.cpp to
navsat_sub_ = node_->create_subscription<sensor_msgs::msg::NavSatFix>(
topic_,
rclcpp::SensorDataQoS(), //instead of QoS(1)
std::bind(&NavSatPlugin::NavSatFixCallback, this, std::placeholders::_1));
Hello everyone, i am quiet new to ROS2, but I would like to utilize Mapviz to visualize the movement of my robot.
This is my launch file:
The problem is mapviz does not receive the message from my topic /gps/fix, although the data of the topic is published (see right: ros2 topic echo /gps/fix ).![image](https://user-images.githubusercontent.com/48084588/115297368-6b0cdb80-a15c-11eb-8236-df16d3da872f.png)
If I publish data for example via
ros2 topic pub /gps/fix sensor_msgs/msg/NavSatFix "{header:{frame_id: gps_link},status:{status: 0,service: 0}, latitude: 47.8051,longitude: 10.60652, altitude: 740.3, position_covariance_type: 2}"
, it will be visualized in mapviz.My![unnamed](https://user-images.githubusercontent.com/48084588/115298087-48c78d80-a15d-11eb-8c2a-031981995580.png)
ros2 topic echo /local_xy_origin
shows plausible data:This is my rqt_graph for the problem topic:![image (1)](https://user-images.githubusercontent.com/48084588/115298251-86c4b180-a15d-11eb-895d-eeb8348b4030.png)
Can anybody help me? I am using Ubuntu 20.04 with foxy and cloned the mapviz branch dashing-devel.