User Tools

Site Tools


eeros_architecture:control_system:available_blocks:rospublaserscan

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
eeros_architecture:control_system:available_blocks:rospublaserscan [2023/02/09 12:01] ursgrafeeros_architecture:control_system:available_blocks:rospublaserscan [2025/03/18 13:39] (current) ursgraf
Line 4: Line 4:
 // create publisher block, lasers canner range has a size of 150 values // create publisher block, lasers canner range has a size of 150 values
 RosPublisherLaserScan<Matrix<150, 1, double>, Matrix<150, 1, double >> laserScan("myTopic", "laser", 100); RosPublisherLaserScan<Matrix<150, 1, double>, Matrix<150, 1, double >> laserScan("myTopic", "laser", 100);
-</code> 
-For ROS2 you have to pass the node, from where the topic is sent. The ROS2 message is of type std_msgs::msg::LaserScan. 
-<code cpp>                                  
-// create publisher block, lasers canner range has a size of 150 values 
-RosPublisherLaserScan<Matrix<150, 1, double>, Matrix<150, 1, double >> laserScan(node, "myTopic", "laser", 100); 
 </code> </code>
  
 The template parameter of the block determines the size of the range and intensity vectors. The time stamp of the signal is transmitted in the message header. The template parameter of the block determines the size of the range and intensity vectors. The time stamp of the signal is transmitted in the message header.
eeros_architecture/control_system/available_blocks/rospublaserscan.1675940474.txt.gz · Last modified: 2023/02/09 12:01 by ursgraf