2 #include <visualization_msgs/Marker.h> 3 #include <geometry_msgs/Pose.h> 4 #include <geometry_msgs/PoseStamped.h> 9 visualization_msgs::Marker
marker;
10 void goalCB(
const geometry_msgs::PoseStamped msg)
13 marker.pose.position.z = -0.2;
15 cout<<
"=============================================================================="<<endl;
30 int main(
int argc,
char** argv )
36 marker_pub = n.
advertise<visualization_msgs::Marker>(
"visualization_marker", 1);
40 marker.header.frame_id =
"/map";
45 marker.ns =
"basic_shapes";
50 marker.mesh_resource =
"package://xbot_s/model/sdzn_full/saidi.DAE";
51 marker.mesh_use_embedded_materials =
true;
54 marker.action = visualization_msgs::Marker::ADD;
void publish(const boost::shared_ptr< M > &message) const
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
visualization_msgs::Marker marker
int main(int argc, char **argv)
ros::Publisher marker_pub
ROSCPP_DECL void spin(Spinner &spinner)
void goalCB(const geometry_msgs::PoseStamped msg)
#define ROS_WARN_ONCE(...)
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
uint32_t getNumSubscribers() const