-
Notifications
You must be signed in to change notification settings - Fork 0
Attached the Color Sensor Plugin #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: try2
Are you sure you want to change the base?
Conversation
Some things @stevendes:
|
Hello @eborghi10 1- The issue wasn't fixed yet, all the things that I tried didn't work out |
if ((*this->image_connect_count_) > 0) | ||
{ | ||
common::Time cur_time = this->world_->SimTime(); | ||
if (cur_time - this->last_update_time_ >= this->update_period_) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This variable (last_update_time_
) is never set before. You need to do it in Load()
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Putting this->last_update_time_ = this->world_->SimTime();
in the CameraPlugin::Load breaks Gazebo
common::Time cur_time = this->world_->SimTime(); | ||
if (cur_time - this->last_update_time_ >= this->update_period_) | ||
{ | ||
this->PutCameraData(_image); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gazebo misbehave without it
@serraramiro1 (Tag Lucas too because I can't), could you check if you find out what's going on? |
The way i fixed this, was adding this line to the load function. this->parentSensor_->SetActive(true); Didn't find any documentation for that though |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments
I have an error when I try to compile your branch:
@stevendes I found where the error is but it is up to you to solve this particular issue. |
Some things to improve here:
|
If I run this:
|
@eborghi10 I still didn't push the file with the addressed commits, the ones that are open hasn't been addressed yet, I don't have errors locally so maybe they are because the last commit is only to resolve the conflicts that were present, I would push it now and please let me know if the error is still present. |
0c619af
to
bd24230
Compare
I wasn't able to test your code. What should I do? Which topics should I look at? |
You have conflicts with the base branch. |
f893557
to
4cb1817
Compare
@eborghi10 addressed most of the comments, the issue with the activation is still present but I'm moving forward with the actionlib task, then I would return to this and try to solve it again |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments, PTAL.
e99b4a9
to
6685a66
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made some comments, PTAL.
Applied changes requested Adressed the issues commented Fixed type Update sensor model Added camera mesh Add color sensor Applied changes requested Adressed the issues commented Fixed type Add color sensor Applied changes requested Adressed the issues commented Fixed type Add color sensor Applied changes requested Adressed the issues commented Fixed type Add color sensor Applied changes requested Adressed the issues commented Fixed type changed xacro files Modifying the original plugin to detect RGB Added the plugin in the two color sensors from previous PR Adding the files for the sensor plugin Add action messages Addressed some comments and added realistic mesh Addressed requested changes, added comments Fixed publication in sensor plugin Update camera plugin Addressed all the comments
6685a66
to
e4e046d
Compare
Addressed all the comments |
e4e046d
to
9d40c00
Compare
9d40c00
to
e4e046d
Compare
UPDATE 1
HOW IT WORKS
It responds by sending an Bool message to the topic related to the specified camera, for example, the left sensor publishes in the topic "left_yellow_sensor".
ISSUES
UPDATE 2