Comments (7)
Hi @Ceepert
Glad to hear from you.
Okay thanks, im gonna try that. Just some questions as I am pretty new to ROS. At point 5. you mentioned to start "ros packaged" do you mean a specific one? Or just the one I use when getting the image topic? Cause I wrote one myselfe as I havent found a good one to get the image topic.
All I was saying is to start your ROS node, which provides images in a ROS topic.
And when you mean to source the workspace you mean to source it to my catkin workspace right?
Yes. You are right.
Nevertheless, give me a week. I can push these changes smoothly. I planned to improve the efficiency of the code, but for now, I think the important thing is to push the webcam code so that you can use it.
Cheers!
Thanks for the quick reply. Im gonna try your steps anyway, just to try it, cause I need this for a school project, but if I know myselfe Im gonna screw up at one step or another anyway
from ros_openpose.
gf
Hi @Ceepert
it says Indigo for the ROS version.
It says that the package has been tested on ROS Indigo.
Should it work with kinetic or will there be some issue I will run into?
Yes. The code doesn't depend on ROS distro version.
BTW, pull the recent changes from the repository. Now it supports any color camera such as webcam etc. See the README.md for more details.
Thank you very much, cant test it right now, but Iยดll give it a try as soon as I can
from ros_openpose.
Hi @Ceepert
Yes, you can use a webcam with it. However, you need to hack the package. So far, I am not getting time to do it by myself. But it is doable by following the steps below.
As you said already, we can use image_raw
topic. In this package image_raw
is called color_topic
. Please follow the steps mentioned below-
- Inside file src/cameraReader.cpp, change line number 89 to the following-
auto depthPtr = cv_bridge::toCvCopy(depthMsg, sensor_msgs::image_encodings::BGR8);
-
Inside the launch file run_realsense.launch
- Look for
depth_topic
and assign it tocolor_topic
. In other words,depth_topic
must be the same ascolor_topic
in this special case. - Look for
pointcloud
and assignfalse
to it. - Look for
skeleton
and assignfalse
to it. - Remove 3D visualization commands by deleting all the lines starting from 76 to 93.
- Look for
-
Comment the line which starts from
mSPtrCameraReader->compute3DPoint
. Therefore, please comment line number 119, 149 and 152 inside rosOpenpose.cpp. -
Open a terminal and source ros workspace. Please compile the project by executing
catkin_make
as usual. -
Please connect your webcam and start ros package which is basically going to capture images from your webcam and it is going to publish those images as ROS topic i.e.
image_raw
. -
Open another terminal and source ros workspace. Run the launch file.
roslaunch ros_openpose run_realsense.launch
- Open another terminal and source ros workspace. Now run
rostopic echo /frame
to see the output values.
I will add this feature once I get time. Let me know if it works.
from ros_openpose.
Hi @Ceepert
Yes, you can use a webcam with it. However, you need to hack the package. So far, I am not getting time to do it by myself. But it is doable by following the steps below.
As you said already, we can use
image_raw
topic. In this packageimage_raw
is calledcolor_topic
. Please follow the steps mentioned below-1. Inside file src/cameraReader.cpp, change [line number 89](https://github.com/ravijo/ros_openpose/blob/3efa6d47088d55498ea74dd0c54737c095838607/src/cameraReader.cpp#L89) to the following-
auto depthPtr = cv_bridge::toCvCopy(depthMsg, sensor_msgs::image_encodings::BGR8);
1. Inside the launch file [run_realsense.launch](https://github.com/ravijo/ros_openpose/blob/3efa6d47088d55498ea74dd0c54737c095838607/launch/run_realsense.launch) 1. Look for `depth_topic` and assign it to `color_topic`. In other words, `depth_topic` must be the same as `color_topic` in this special case. 2. Look for `pointcloud` and assign `false` to it. 3. Look for `skeleton` and assign `false` to it. 4. Remove 3D visualization commands by deleting all the lines starting from [76 to 93](https://github.com/ravijo/ros_openpose/blob/3efa6d47088d55498ea74dd0c54737c095838607/launch/run_realsense.launch#L76-L93). 2. Comment the line which starts from `mSPtrCameraReader->compute3DPoint`. Therefore, please comment line number [119](https://github.com/ravijo/ros_openpose/blob/3efa6d47088d55498ea74dd0c54737c095838607/src/rosOpenpose.cpp#L119), [149](https://github.com/ravijo/ros_openpose/blob/3efa6d47088d55498ea74dd0c54737c095838607/src/rosOpenpose.cpp#L149) and [152](https://github.com/ravijo/ros_openpose/blob/3efa6d47088d55498ea74dd0c54737c095838607/src/rosOpenpose.cpp#L152) inside [rosOpenpose.cpp](https://github.com/ravijo/ros_openpose/blob/3efa6d47088d55498ea74dd0c54737c095838607/src/rosOpenpose.cpp). 3. Open a terminal and source ros workspace. Please compile the project by executing `catkin_make` as usual. 4. Please connect your webcam and start ros package which is basically going to capture images from your webcam and it is going to publish those images as ROS topic i.e. `image_raw`. 5. Open anotger terminal and source ros workspace. Run the launch file.
roslaunch ros_openpose run_realsense.launch
1. Open another terminal and source ros workspace. Now run `rostopic echo /frame` to see the output values.
I will add this feature once I get time. Let me know if it works.
Okay thanks, im gonna try that. Just some questions as I am pretty new to ROS. At point 5. you mentioned to start "ros packaged" do you mean a specific one? Or just the one I use when getting the image topic? Cause I wrote one myselfe as I havent found a good one to get the image topic.
And when you mean to source the workspace you mean to source it to my catkin workspace right?
from ros_openpose.
Hi @Ceepert
Glad to hear from you.
Okay thanks, im gonna try that. Just some questions as I am pretty new to ROS. At point 5. you mentioned to start "ros packaged" do you mean a specific one? Or just the one I use when getting the image topic? Cause I wrote one myselfe as I havent found a good one to get the image topic.
All I was saying is to start your ROS node, which provides images in a ROS topic.
And when you mean to source the workspace you mean to source it to my catkin workspace right?
Yes. You are right.
Nevertheless, give me a week. I can push these changes smoothly. I planned to improve the efficiency of the code, but for now, I think the important thing is to push the webcam code so that you can use it.
Cheers!
from ros_openpose.
Hi @Ceepert
Glad to hear from you.
Okay thanks, im gonna try that. Just some questions as I am pretty new to ROS. At point 5. you mentioned to start "ros packaged" do you mean a specific one? Or just the one I use when getting the image topic? Cause I wrote one myselfe as I havent found a good one to get the image topic.
All I was saying is to start your ROS node, which provides images in a ROS topic.
And when you mean to source the workspace you mean to source it to my catkin workspace right?
Yes. You are right.
Nevertheless, give me a week. I can push these changes smoothly. I planned to improve the efficiency of the code, but for now, I think the important thing is to push the webcam code so that you can use it.
Cheers!
oh one more thing. I just noticed that in the details of the wrapper it says Indigo for the ROS version. I was able to compile it on Kinetic. Should it work with kinetic or will there be some issue I will run into?
from ros_openpose.
Hi @Ceepert
it says Indigo for the ROS version.
It says that the package has been tested on ROS Indigo.
Should it work with kinetic or will there be some issue I will run into?
Yes. The code doesn't depend on ROS distro version.
BTW, pull the recent changes from the repository. Now it supports any color camera such as webcam etc. See the README.md for more details.
from ros_openpose.
Related Issues (20)
- Increasing frame rate for Azure Kinect HOT 3
- Cannot get it to work in the most standard configuration HOT 2
- Frame_id + Publishing depth information HOT 6
- Information about Face Output HOT 7
- Hand skeleton error HOT 4
- Net Resolution HOT 2
- Only Hand Poses HOT 1
- Skeleton error in Rviz HOT 2
- Directory for openpose python node HOT 6
- encoding MONO16 support HOT 5
- Cmake Error - Package Configuration File Not Found HOT 2
- Error of run.launch HOT 14
- Input the Wrapper a recorded Azure Kinect Video HOT 2
- (OpenPose 1.7.0:16877): Gtk-ERROR ** HOT 5
- Need to detect only one person in the frame HOT 2
- Missing tags section HOT 2
- REQUIRED process [rosOpenpose-2] has died! HOT 4
- Lunch file operation error HOT 6
- Error running the launch file run.launch HOT 2
- Question about ROS Message Frame 3D Points HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ros_openpose.