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
| add_service_files( | |
| FILES | |
| ServiceName.srv | |
| ) | |
| ... | |
| find_package(catkin REQUIRED COMPONENTS | |
| roscpp | |
| message_generation | |
| ) |
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
| float64 radius | |
| int32 repetitions | |
| --- | |
| bool success |
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
| #include <ros/package.h> | |
| trajectory.request.file = ros::package::getPath("packagename") + "/path_to/file.txt"; |
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
| find_package(catkin REQUIRED COMPONENTS roscpp roslib) |
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
| find_package(catkin REQUIRED COMPONENTS | |
| roscpp | |
| std_msgs | |
| message_generation # Add message_generation here, after the other packages | |
| ) | |
| #Add to message files | |
| add_message_files( | |
| FILES |
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
| <build_depend>message_generation</build_depend> | |
| <run_depend>message_runtime</run_depend> |
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
| import cv2 | |
| import numpy as np | |
| img = cv2.imread('images/input.jpg') | |
| gray=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) | |
| rows,cols = img.shape[:2] | |
| cv2.imshow('Original',img) |
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
| class A{ | |
| int d_val; | |
| public: | |
| A(int val){ | |
| d_val=val; | |
| } | |
| }; | |
| int main(){ | |
| A * a=new A(5); |
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
| class A{ | |
| int d_val; | |
| public: | |
| A(int val){ | |
| d_val=val; | |
| } | |
| }; | |
| int main(){ | |
| A a=A(5); |
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
| class A{ | |
| public: | |
| int d_val; | |
| }; | |
| int main(){ | |
| A a=A(); | |
| a.val=5; | |
| return 0; | |
| } |