Skip to content

Feature/battery warning msi laptop - #45

Open
KevinDang74 wants to merge 21 commits into
masterfrom
feature/battery_warning_msi_laptop
Open

Feature/battery warning msi laptop#45
KevinDang74 wants to merge 21 commits into
masterfrom
feature/battery_warning_msi_laptop

Conversation

@KevinDang74

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/battery_manager_laptop.cpp Outdated
Comment thread src/battery_manager_laptop.cpp Outdated
Comment thread src/battery_manager_laptop.cpp
}

// publish voice message
if (old_message != message && message != "")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to have indeed :-)

Can also be part of the callback though AFAIK

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. We would want to check whether the percentage has changed rather than the message

Comment thread src/battery_manager_laptop.cpp Outdated

@LoyVanBeek LoyVanBeek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Getting there :-)

Comment thread src/battery_manager_laptop.cpp Outdated
Comment thread src/battery_manager_laptop.cpp Outdated
Comment thread launch/hero_bringup.launch Outdated
Comment thread src/battery_manager_laptop.cpp Outdated
Comment thread scripts/hero1-battery-manager-laptop.service
Comment thread scripts/services/hero2/hero2-battery-manager-laptop.service Outdated
Comment thread scripts/services/hero2-demo/hero2-battery-manager-laptop.service Outdated
MatthijsBurgh
MatthijsBurgh previously approved these changes Mar 7, 2020
@MatthijsBurgh

Copy link
Copy Markdown
Member

@PetervDooren can you test this and merge it?

@PetervDooren

Copy link
Copy Markdown
Contributor

Tested on the robot. After this last commit it works

@MatthijsBurgh MatthijsBurgh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like the launch file rename to battery_manager_hero2.launch

MatthijsBurgh
MatthijsBurgh previously approved these changes Mar 7, 2020

@MatthijsBurgh MatthijsBurgh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please test before merging

ros::param::get("/robot_location", robot_location);

ros::Subscriber battery_sub = gn.subscribe("battery", 1, batteryCallback);
speech_pub = gn.advertise<std_msgs::String>("text_to_speech/input", 10);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This speech publisher goes to the text to speech bridge node. Please either:

  • publish directly to the toyota interface (my preference)
  • launch the speech bridge along with the battery manager

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How can I publish directly to the toyota interface? What is the topic name?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread src/battery_manager_laptop.cpp
}

// publish voice message
if (old_message != message && message != "")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. We would want to check whether the percentage has changed rather than the message

@PetervDooren

Copy link
Copy Markdown
Contributor

@KevinDang74 Installation process on hero2 is taken care of. I still have some changes I would like to see so I'm passing it back to you

Comment thread src/battery_manager_laptop.cpp

@MatthijsBurgh MatthijsBurgh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be in this package. As it is only used on the robot and not in simulation

@MatthijsBurgh
MatthijsBurgh force-pushed the feature/battery_warning_msi_laptop branch from 1b3ad51 to d807f5f Compare March 12, 2022 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants