User Tools

Site Tools


eeros_architecture:control_system:available_blocks:rospubdoublearray

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
eeros_architecture:control_system:available_blocks:rospubdoublearray [2017/11/01 22:51] grafeeros_architecture:control_system:available_blocks:rospubdoublearray [2023/02/09 11:55] ursgraf
Line 2: Line 2:
 This block samples the vector signal at its input and packs it into a ROS message of type ''std_msgs::Float64MultiArray''. Each time the block is run by its time domain, this message is published under a given topic name. This block samples the vector signal at its input and packs it into a ROS message of type ''std_msgs::Float64MultiArray''. Each time the block is run by its time domain, this message is published under a given topic name.
 <code cpp> <code cpp>
-  ros::NodeHandle rosNodeHandler                                         // define a handler for ROS nodes +  RosPublisherDoubleArray pubArray("myTopic", 100); // create publisher block 
-  RosPublisherDoubleArray pubArray(rosNodeHandler, "myNode/myTopic", 100); // create publisher block+</code> 
 +For ROS2 you have to pass the node, from where the topic is sent. 
 +<code cpp> 
 +  RosPublisherDoubleArray pubArray(node, "myTopic", 100); // create publisher block
 </code> </code>
  
 +This block can be connected to any signal whose value is of type ''Matrix<N, 1, double>''. \\
 +IMPORTANT The time stamp of the signal is not transmitted.
  
eeros_architecture/control_system/available_blocks/rospubdoublearray.txt · Last modified: 2023/02/09 11:59 by ursgraf